2021-02-25 10:25:22 +00:00
|
|
|
error: default numeric fallback might occur
|
2022-06-16 15:39:06 +00:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:21:17
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
|
LL | let x = 22;
|
|
|
|
| ^^ help: consider adding suffix: `22_i32`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::default-numeric-fallback` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2022-06-16 15:39:06 +00:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:22:18
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
|
LL | let x = [1, 2, 3];
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2022-06-16 15:39:06 +00:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:22:21
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
|
LL | let x = [1, 2, 3];
|
|
|
|
| ^ help: consider adding suffix: `2_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2022-06-16 15:39:06 +00:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:22:24
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
|
LL | let x = [1, 2, 3];
|
|
|
|
| ^ help: consider adding suffix: `3_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2022-06-16 15:39:06 +00:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:23:28
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2022-06-16 15:39:06 +00:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:23:31
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
|
|
|
| ^ help: consider adding suffix: `2_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2022-06-16 15:39:06 +00:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:23:44
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
|
|
|
| ^ help: consider adding suffix: `3_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2022-06-16 15:39:06 +00:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:23:47
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
|
|
|
| ^ help: consider adding suffix: `4_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2022-06-16 15:39:06 +00:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:24:23
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
|
LL | let x = match 1 {
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2022-06-16 15:39:06 +00:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:25:13
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
|
LL | 1 => 1,
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2022-06-16 15:39:06 +00:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:25:18
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
|
LL | 1 => 1,
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2022-06-16 15:39:06 +00:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:26:18
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
|
LL | _ => 2,
|
|
|
|
| ^ help: consider adding suffix: `2_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2022-06-16 15:39:06 +00:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:43:21
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
|
LL | let y = 1;
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2022-06-16 15:39:06 +00:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:51:21
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
|
LL | let y = 1;
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2022-06-16 15:39:06 +00:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:57:21
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
|
LL | let y = 1;
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2022-06-16 15:39:06 +00:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:69:9
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
|
LL | 1
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2022-06-16 15:39:06 +00:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:75:27
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
|
LL | let f = || -> _ { 1 };
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2022-06-16 15:39:06 +00:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:79:29
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
|
LL | let f = || -> i32 { 1 };
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2022-06-16 15:39:06 +00:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:93:21
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
|
LL | generic_arg(1);
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2022-06-16 15:39:06 +00:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:96:32
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
|
LL | let x: _ = generic_arg(1);
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2022-06-16 15:39:06 +00:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:114:28
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
|
LL | GenericStruct { x: 1 };
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2022-06-16 15:39:06 +00:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:117:36
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
|
LL | let _ = GenericStruct { x: 1 };
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2022-06-16 15:39:06 +00:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:135:24
|
2021-07-15 08:44:10 +00:00
|
|
|
|
|
|
|
|
LL | GenericEnum::X(1);
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2022-06-16 15:39:06 +00:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:155:23
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
|
LL | s.generic_arg(1);
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
2021-07-01 16:17:38 +00:00
|
|
|
error: default numeric fallback might occur
|
2022-06-16 15:39:06 +00:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:162:21
|
2021-07-01 16:17:38 +00:00
|
|
|
|
|
|
|
|
LL | let x = 22;
|
|
|
|
| ^^ help: consider adding suffix: `22_i32`
|
|
|
|
...
|
|
|
|
LL | internal_macro!();
|
2021-10-14 18:28:30 +00:00
|
|
|
| ----------------- in this macro invocation
|
2021-07-01 16:17:38 +00:00
|
|
|
|
|
|
|
|
= note: this error originates in the macro `internal_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error: aborting due to 25 previous errors
|
2021-02-25 10:25:22 +00:00
|
|
|
|