2021-02-02 03:26:20 +00:00
|
|
|
error: default numeric fallback might occur
|
2021-02-25 22:33:46 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:11:17
|
2021-02-02 03:26:20 +00:00
|
|
|
|
|
2021-02-15 14:33:27 +00:00
|
|
|
LL | let x = 22;
|
2021-02-16 09:07:09 +00:00
|
|
|
| ^^ help: consider adding suffix: `22_i32`
|
2021-02-02 03:26:20 +00:00
|
|
|
|
|
|
|
|
= note: `-D clippy::default-numeric-fallback` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-25 22:33:46 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:12:18
|
2021-02-15 14:33:27 +00:00
|
|
|
|
|
|
|
|
LL | let x = [1, 2, 3];
|
2021-02-16 09:07:09 +00:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-15 14:33:27 +00:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-25 22:33:46 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:12:21
|
2021-02-15 14:33:27 +00:00
|
|
|
|
|
|
|
|
LL | let x = [1, 2, 3];
|
2021-02-16 09:07:09 +00:00
|
|
|
| ^ help: consider adding suffix: `2_i32`
|
2021-02-15 14:33:27 +00:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-25 22:33:46 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:12:24
|
2021-02-02 03:26:20 +00:00
|
|
|
|
|
2021-02-15 14:33:27 +00:00
|
|
|
LL | let x = [1, 2, 3];
|
2021-02-16 09:07:09 +00:00
|
|
|
| ^ help: consider adding suffix: `3_i32`
|
2021-02-02 03:26:20 +00:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-25 22:33:46 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:13:28
|
2021-02-15 14:33:27 +00:00
|
|
|
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
2021-02-16 09:07:09 +00:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-15 14:33:27 +00:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-25 22:33:46 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:13:31
|
2021-02-15 14:33:27 +00:00
|
|
|
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
2021-02-16 09:07:09 +00:00
|
|
|
| ^ help: consider adding suffix: `2_i32`
|
2021-02-15 14:33:27 +00:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-25 22:33:46 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:13:44
|
2021-02-15 14:33:27 +00:00
|
|
|
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
2021-02-16 09:07:09 +00:00
|
|
|
| ^ help: consider adding suffix: `3_i32`
|
2021-02-15 14:33:27 +00:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-25 22:33:46 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:13:47
|
2021-02-15 14:33:27 +00:00
|
|
|
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
2021-02-16 09:07:09 +00:00
|
|
|
| ^ help: consider adding suffix: `4_i32`
|
2021-02-15 14:33:27 +00:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-25 22:33:46 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:14:23
|
2021-02-15 14:33:27 +00:00
|
|
|
|
|
|
|
|
LL | let x = match 1 {
|
2021-02-16 09:07:09 +00:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-02 03:26:20 +00:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-25 22:33:46 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:15:13
|
2021-02-02 03:26:20 +00:00
|
|
|
|
|
2021-02-15 14:33:27 +00:00
|
|
|
LL | 1 => 1,
|
2021-02-16 09:07:09 +00:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-02 03:26:20 +00:00
|
|
|
|
2021-02-15 05:22:31 +00:00
|
|
|
error: default numeric fallback might occur
|
2021-02-25 22:33:46 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:15:18
|
2021-02-15 05:22:31 +00:00
|
|
|
|
|
2021-02-15 14:33:27 +00:00
|
|
|
LL | 1 => 1,
|
2021-02-16 09:07:09 +00:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-15 05:22:31 +00:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-25 22:33:46 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:16:18
|
2021-02-15 05:22:31 +00:00
|
|
|
|
|
2021-02-15 14:33:27 +00:00
|
|
|
LL | _ => 2,
|
2021-02-16 09:07:09 +00:00
|
|
|
| ^ help: consider adding suffix: `2_i32`
|
2021-02-15 05:22:31 +00:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-25 22:33:46 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:20:17
|
2021-02-15 05:22:31 +00:00
|
|
|
|
|
2021-02-15 14:33:27 +00:00
|
|
|
LL | let x = 0.12;
|
2021-02-16 09:07:09 +00:00
|
|
|
| ^^^^ help: consider adding suffix: `0.12_f64`
|
2021-02-15 05:22:31 +00:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-25 22:33:46 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:38:21
|
2021-02-15 05:22:31 +00:00
|
|
|
|
|
2021-02-15 14:33:27 +00:00
|
|
|
LL | let y = 1;
|
2021-02-16 09:07:09 +00:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-15 05:22:31 +00:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-25 22:33:46 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:46:21
|
2021-02-16 02:20:51 +00:00
|
|
|
|
|
|
|
|
LL | let y = 1;
|
2021-02-16 09:07:09 +00:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-16 02:20:51 +00:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-25 22:33:46 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:52:21
|
2021-02-16 02:20:51 +00:00
|
|
|
|
|
|
|
|
LL | let y = 1;
|
2021-02-16 09:07:09 +00:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-16 02:20:51 +00:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-25 22:33:46 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:64:9
|
2021-02-16 02:20:51 +00:00
|
|
|
|
|
|
|
|
LL | 1
|
2021-02-16 09:07:09 +00:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-16 02:20:51 +00:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-25 22:33:46 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:70:27
|
2021-02-16 02:20:51 +00:00
|
|
|
|
|
|
|
|
LL | let f = || -> _ { 1 };
|
2021-02-16 09:07:09 +00:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-16 02:20:51 +00:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-25 22:33:46 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:74:29
|
2021-02-16 02:20:51 +00:00
|
|
|
|
|
|
|
|
LL | let f = || -> i32 { 1 };
|
2021-02-16 09:07:09 +00:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-16 02:20:51 +00:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-25 22:33:46 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:88:21
|
2021-02-15 05:22:31 +00:00
|
|
|
|
|
2021-02-15 14:33:27 +00:00
|
|
|
LL | generic_arg(1);
|
2021-02-16 09:07:09 +00:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-15 14:33:27 +00:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-25 22:33:46 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:91:32
|
2021-02-15 14:33:27 +00:00
|
|
|
|
|
|
|
|
LL | let x: _ = generic_arg(1);
|
2021-02-16 09:07:09 +00:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-15 14:33:27 +00:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-25 22:33:46 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:109:28
|
2021-02-16 02:20:51 +00:00
|
|
|
|
|
|
|
|
LL | GenericStruct { x: 1 };
|
2021-02-16 09:07:09 +00:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-16 02:20:51 +00:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-25 22:33:46 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:112:36
|
2021-02-16 02:20:51 +00:00
|
|
|
|
|
|
|
|
LL | let _ = GenericStruct { x: 1 };
|
2021-02-16 09:07:09 +00:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-16 02:20:51 +00:00
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-25 22:33:46 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:132:23
|
2021-02-15 14:33:27 +00:00
|
|
|
|
|
|
|
|
LL | s.generic_arg(1);
|
2021-02-16 09:07:09 +00:00
|
|
|
| ^ help: consider adding suffix: `1_i32`
|
2021-02-15 05:22:31 +00:00
|
|
|
|
2021-02-16 02:20:51 +00:00
|
|
|
error: aborting due to 24 previous errors
|
2021-02-02 03:26:20 +00:00
|
|
|
|