2021-02-01 21:26:20 -06:00
|
|
|
error: default numeric fallback might occur
|
2021-06-05 01:11:44 -05:00
|
|
|
--> $DIR/default_numeric_fallback.rs:16:17
|
2021-02-01 21:26:20 -06:00
|
|
|
|
|
2021-02-15 08:33:27 -06:00
|
|
|
LL | let x = 22;
|
2021-02-16 03:07:09 -06:00
|
|
|
| ^^ help: consider adding suffix: `22_i32`
|
2021-02-01 21:26:20 -06:00
|
|
|
|
|
|
|
|
= note: `-D clippy::default-numeric-fallback` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-06-05 01:11:44 -05:00
|
|
|
--> $DIR/default_numeric_fallback.rs:17:18
|
2021-02-15 08:33:27 -06:00
|
|
|
|
|
|
|
|
LL | let x = [1, 2, 3];
|
2021-02-16 03:07:09 -06:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-15 08:33:27 -06:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-06-05 01:11:44 -05:00
|
|
|
--> $DIR/default_numeric_fallback.rs:17:21
|
2021-02-15 08:33:27 -06:00
|
|
|
|
|
|
|
|
LL | let x = [1, 2, 3];
|
2021-02-16 03:07:09 -06:00
|
|
|
| ^ help: consider adding suffix: `2_i32`
|
2021-02-15 08:33:27 -06:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-06-05 01:11:44 -05:00
|
|
|
--> $DIR/default_numeric_fallback.rs:17:24
|
2021-02-01 21:26:20 -06:00
|
|
|
|
|
2021-02-15 08:33:27 -06:00
|
|
|
LL | let x = [1, 2, 3];
|
2021-02-16 03:07:09 -06:00
|
|
|
| ^ help: consider adding suffix: `3_i32`
|
2021-02-01 21:26:20 -06:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-06-05 01:11:44 -05:00
|
|
|
--> $DIR/default_numeric_fallback.rs:18:28
|
2021-02-15 08:33:27 -06:00
|
|
|
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
2021-02-16 03:07:09 -06:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-15 08:33:27 -06:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-06-05 01:11:44 -05:00
|
|
|
--> $DIR/default_numeric_fallback.rs:18:31
|
2021-02-15 08:33:27 -06:00
|
|
|
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
2021-02-16 03:07:09 -06:00
|
|
|
| ^ help: consider adding suffix: `2_i32`
|
2021-02-15 08:33:27 -06:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-06-05 01:11:44 -05:00
|
|
|
--> $DIR/default_numeric_fallback.rs:18:44
|
2021-02-15 08:33:27 -06:00
|
|
|
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
2021-02-16 03:07:09 -06:00
|
|
|
| ^ help: consider adding suffix: `3_i32`
|
2021-02-15 08:33:27 -06:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-06-05 01:11:44 -05:00
|
|
|
--> $DIR/default_numeric_fallback.rs:18:47
|
2021-02-15 08:33:27 -06:00
|
|
|
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
2021-02-16 03:07:09 -06:00
|
|
|
| ^ help: consider adding suffix: `4_i32`
|
2021-02-15 08:33:27 -06:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-06-05 01:11:44 -05:00
|
|
|
--> $DIR/default_numeric_fallback.rs:19:23
|
2021-02-15 08:33:27 -06:00
|
|
|
|
|
|
|
|
LL | let x = match 1 {
|
2021-02-16 03:07:09 -06:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-01 21:26:20 -06:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-06-05 01:11:44 -05:00
|
|
|
--> $DIR/default_numeric_fallback.rs:20:13
|
2021-02-01 21:26:20 -06:00
|
|
|
|
|
2021-02-15 08:33:27 -06:00
|
|
|
LL | 1 => 1,
|
2021-02-16 03:07:09 -06:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-01 21:26:20 -06:00
|
|
|
|
2021-02-14 23:22:31 -06:00
|
|
|
error: default numeric fallback might occur
|
2021-06-05 01:11:44 -05:00
|
|
|
--> $DIR/default_numeric_fallback.rs:20:18
|
2021-02-14 23:22:31 -06:00
|
|
|
|
|
2021-02-15 08:33:27 -06:00
|
|
|
LL | 1 => 1,
|
2021-02-16 03:07:09 -06:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-14 23:22:31 -06:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-06-05 01:11:44 -05:00
|
|
|
--> $DIR/default_numeric_fallback.rs:21:18
|
2021-02-14 23:22:31 -06:00
|
|
|
|
|
2021-02-15 08:33:27 -06:00
|
|
|
LL | _ => 2,
|
2021-02-16 03:07:09 -06:00
|
|
|
| ^ help: consider adding suffix: `2_i32`
|
2021-02-14 23:22:31 -06:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-06-05 01:11:44 -05:00
|
|
|
--> $DIR/default_numeric_fallback.rs:25:17
|
2021-02-14 23:22:31 -06:00
|
|
|
|
|
2021-02-15 08:33:27 -06:00
|
|
|
LL | let x = 0.12;
|
2021-02-16 03:07:09 -06:00
|
|
|
| ^^^^ help: consider adding suffix: `0.12_f64`
|
2021-02-14 23:22:31 -06:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-06-05 01:11:44 -05:00
|
|
|
--> $DIR/default_numeric_fallback.rs:43:21
|
2021-02-14 23:22:31 -06:00
|
|
|
|
|
2021-02-15 08:33:27 -06:00
|
|
|
LL | let y = 1;
|
2021-02-16 03:07:09 -06:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-14 23:22:31 -06:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-06-05 01:11:44 -05:00
|
|
|
--> $DIR/default_numeric_fallback.rs:51:21
|
2021-02-15 20:20:51 -06:00
|
|
|
|
|
|
|
|
LL | let y = 1;
|
2021-02-16 03:07:09 -06:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-15 20:20:51 -06:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-06-05 01:11:44 -05:00
|
|
|
--> $DIR/default_numeric_fallback.rs:57:21
|
2021-02-15 20:20:51 -06:00
|
|
|
|
|
|
|
|
LL | let y = 1;
|
2021-02-16 03:07:09 -06:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-15 20:20:51 -06:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-06-05 01:11:44 -05:00
|
|
|
--> $DIR/default_numeric_fallback.rs:69:9
|
2021-02-15 20:20:51 -06:00
|
|
|
|
|
|
|
|
LL | 1
|
2021-02-16 03:07:09 -06:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-15 20:20:51 -06:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-06-05 01:11:44 -05:00
|
|
|
--> $DIR/default_numeric_fallback.rs:75:27
|
2021-02-15 20:20:51 -06:00
|
|
|
|
|
|
|
|
LL | let f = || -> _ { 1 };
|
2021-02-16 03:07:09 -06:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-15 20:20:51 -06:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-06-05 01:11:44 -05:00
|
|
|
--> $DIR/default_numeric_fallback.rs:79:29
|
2021-02-15 20:20:51 -06:00
|
|
|
|
|
|
|
|
LL | let f = || -> i32 { 1 };
|
2021-02-16 03:07:09 -06:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-15 20:20:51 -06:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-06-05 01:11:44 -05:00
|
|
|
--> $DIR/default_numeric_fallback.rs:93:21
|
2021-02-14 23:22:31 -06:00
|
|
|
|
|
2021-02-15 08:33:27 -06:00
|
|
|
LL | generic_arg(1);
|
2021-02-16 03:07:09 -06:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-15 08:33:27 -06:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-06-05 01:11:44 -05:00
|
|
|
--> $DIR/default_numeric_fallback.rs:96:32
|
2021-02-15 08:33:27 -06:00
|
|
|
|
|
|
|
|
LL | let x: _ = generic_arg(1);
|
2021-02-16 03:07:09 -06:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-15 08:33:27 -06:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-06-05 01:11:44 -05:00
|
|
|
--> $DIR/default_numeric_fallback.rs:114:28
|
2021-02-15 20:20:51 -06:00
|
|
|
|
|
|
|
|
LL | GenericStruct { x: 1 };
|
2021-02-16 03:07:09 -06:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-15 20:20:51 -06:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-06-05 01:11:44 -05:00
|
|
|
--> $DIR/default_numeric_fallback.rs:117:36
|
2021-02-15 20:20:51 -06:00
|
|
|
|
|
|
|
|
LL | let _ = GenericStruct { x: 1 };
|
2021-02-16 03:07:09 -06:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-15 20:20:51 -06:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-06-05 01:11:44 -05:00
|
|
|
--> $DIR/default_numeric_fallback.rs:137:23
|
2021-02-15 08:33:27 -06:00
|
|
|
|
|
|
|
|
LL | s.generic_arg(1);
|
2021-02-16 03:07:09 -06:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-14 23:22:31 -06:00
|
|
|
|
2021-06-05 01:11:44 -05:00
|
|
|
error: default numeric fallback might occur
|
|
|
|
--> $DIR/default_numeric_fallback.rs:144:21
|
|
|
|
|
|
|
|
|
LL | let x = 22;
|
|
|
|
| ^^ help: consider adding suffix: `22_i32`
|
|
|
|
...
|
|
|
|
LL | internal_macro!();
|
|
|
|
| ------------------ in this macro invocation
|
|
|
|
|
|
|
|
|
= 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-01 21:26:20 -06:00
|
|
|
|