2021-02-25 04:25:22 -06:00
|
|
|
error: default numeric fallback might occur
|
2023-03-08 10:31:00 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:22:17
|
2021-02-25 04:25:22 -06: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
|
2023-03-08 10:31:00 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:23:18
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | let x = [1, 2, 3];
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-08 10:31:00 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:23:21
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | let x = [1, 2, 3];
|
|
|
|
| ^ help: consider adding suffix: `2_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-08 10:31:00 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:23:24
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | let x = [1, 2, 3];
|
|
|
|
| ^ help: consider adding suffix: `3_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-08 10:31:00 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:24:28
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-08 10:31:00 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:24:31
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
|
|
|
| ^ help: consider adding suffix: `2_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-08 10:31:00 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:24:44
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
|
|
|
| ^ help: consider adding suffix: `3_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-08 10:31:00 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:24:47
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
|
|
|
| ^ help: consider adding suffix: `4_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-08 10:31:00 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:25:23
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | let x = match 1 {
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-08 10:31:00 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:26:13
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | 1 => 1,
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-08 10:31:00 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:26:18
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | 1 => 1,
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-08 10:31:00 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:27:18
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | _ => 2,
|
|
|
|
| ^ help: consider adding suffix: `2_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-08 10:31:00 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:46:21
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | let y = 1;
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-08 10:31:00 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:54:21
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | let y = 1;
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-08 10:31:00 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:60:21
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | let y = 1;
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-08 10:31:00 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:68:21
|
2022-10-12 05:04:41 -05:00
|
|
|
|
|
|
|
|
LL | let y = 1;
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-08 10:31:00 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:80:9
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | 1
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-08 10:31:00 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:86:27
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | let f = || -> _ { 1 };
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-08 10:31:00 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:90:29
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | let f = || -> i32 { 1 };
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-08 10:31:00 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:104:21
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | generic_arg(1);
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-08 10:31:00 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:107:32
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | let x: _ = generic_arg(1);
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-08 10:31:00 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:125:28
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | GenericStruct { x: 1 };
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-08 10:31:00 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:128:36
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | let _ = GenericStruct { x: 1 };
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-08 10:31:00 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:146:24
|
2021-07-15 03:44:10 -05:00
|
|
|
|
|
|
|
|
LL | GenericEnum::X(1);
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-08 10:31:00 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:166:23
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | s.generic_arg(1);
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
2021-07-01 11:17:38 -05:00
|
|
|
error: default numeric fallback might occur
|
2023-03-07 08:40:55 -06:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:176:25
|
2021-07-01 11:17:38 -05:00
|
|
|
|
|
2023-03-07 08:40:55 -06:00
|
|
|
LL | inline!(let x = 22;);
|
|
|
|
| ^^ help: consider adding suffix: `22_i32`
|
2021-07-01 11:17:38 -05:00
|
|
|
|
|
2023-03-07 08:40:55 -06:00
|
|
|
= note: this error originates in the macro `__inline_mac_fn_internal` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2021-07-01 11:17:38 -05:00
|
|
|
|
2022-10-12 05:04:41 -05:00
|
|
|
error: aborting due to 26 previous errors
|
2021-02-25 04:25:22 -06:00
|
|
|
|