2021-02-25 04:25:22 -06:00
|
|
|
error: default numeric fallback might occur
|
2021-07-15 03:44:10 -05:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:17: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
|
2021-07-15 03:44:10 -05:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:18: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
|
2021-07-15 03:44:10 -05:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:18: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
|
2021-07-15 03:44:10 -05:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:18: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
|
2021-07-15 03:44:10 -05:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:19: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
|
2021-07-15 03:44:10 -05:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:19: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
|
2021-07-15 03:44:10 -05:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:19: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
|
2021-07-15 03:44:10 -05:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:19: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
|
2021-07-15 03:44:10 -05:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:20: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
|
2021-07-15 03:44:10 -05:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:21:13
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | 1 => 1,
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-07-15 03:44:10 -05:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:21:18
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | 1 => 1,
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-07-15 03:44:10 -05:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:22:18
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | _ => 2,
|
|
|
|
| ^ help: consider adding suffix: `2_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-07-15 03:44:10 -05:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:39: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
|
2021-07-15 03:44:10 -05:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:47: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
|
2021-07-15 03:44:10 -05:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:53: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
|
2021-07-15 03:44:10 -05:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:65:9
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | 1
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-07-15 03:44:10 -05:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:71: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
|
2021-07-15 03:44:10 -05:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:75: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
|
2021-07-15 03:44:10 -05:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:89: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
|
2021-07-15 03:44:10 -05:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:92: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
|
2021-07-15 03:44:10 -05:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:110: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
|
2021-07-15 03:44:10 -05:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:113: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
|
2021-07-15 03:44:10 -05:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:131:24
|
|
|
|
|
|
|
|
|
LL | GenericEnum::X(1);
|
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:151: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
|
2021-07-15 03:44:10 -05:00
|
|
|
--> $DIR/default_numeric_fallback_i32.rs:158:21
|
2021-07-01 11:17:38 -05:00
|
|
|
|
|
|
|
|
LL | let x = 22;
|
|
|
|
| ^^ help: consider adding suffix: `22_i32`
|
|
|
|
...
|
|
|
|
LL | internal_macro!();
|
2021-10-14 13:28:30 -05:00
|
|
|
| ----------------- in this macro invocation
|
2021-07-01 11:17:38 -05: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 04:25:22 -06:00
|
|
|
|