2021-02-02 03:26:20 +00:00
|
|
|
error: default numeric fallback might occur
|
2021-02-15 14:33:27 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:10:17
|
2021-02-02 03:26:20 +00:00
|
|
|
|
|
2021-02-15 14:33:27 +00:00
|
|
|
LL | let x = 22;
|
|
|
|
| ^^
|
2021-02-02 03:26:20 +00:00
|
|
|
|
|
|
|
|
= note: `-D clippy::default-numeric-fallback` implied by `-D warnings`
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-15 14:33:27 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:11:18
|
|
|
|
|
|
|
|
|
LL | let x = [1, 2, 3];
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
|
|
|
--> $DIR/default_numeric_fallback.rs:11:21
|
|
|
|
|
|
|
|
|
LL | let x = [1, 2, 3];
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
|
|
|
--> $DIR/default_numeric_fallback.rs:11: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-02 03:26:20 +00:00
|
|
|
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-15 14:33:27 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:12:28
|
|
|
|
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
|
|
|
--> $DIR/default_numeric_fallback.rs:12:31
|
|
|
|
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
|
|
|
--> $DIR/default_numeric_fallback.rs:12:44
|
|
|
|
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
|
|
|
| ^
|
2021-02-02 03:26:20 +00:00
|
|
|
|
|
2021-02-15 14:33:27 +00:00
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
|
|
|
--> $DIR/default_numeric_fallback.rs:12:47
|
|
|
|
|
|
|
|
|
LL | let x = if true { (1, 2) } else { (3, 4) };
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
|
|
|
--> $DIR/default_numeric_fallback.rs:13:23
|
|
|
|
|
|
|
|
|
LL | let x = match 1 {
|
2021-02-02 03:26:20 +00:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-15 14:33:27 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:14:13
|
2021-02-02 03:26:20 +00:00
|
|
|
|
|
2021-02-15 14:33:27 +00:00
|
|
|
LL | 1 => 1,
|
|
|
|
| ^
|
2021-02-02 03:26:20 +00:00
|
|
|
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
|
2021-02-15 05:22:31 +00:00
|
|
|
error: default numeric fallback might occur
|
2021-02-15 14:33:27 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:14:18
|
2021-02-15 05:22:31 +00:00
|
|
|
|
|
2021-02-15 14:33:27 +00:00
|
|
|
LL | 1 => 1,
|
|
|
|
| ^
|
2021-02-15 05:22:31 +00:00
|
|
|
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-15 14:33:27 +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 | _ => 2,
|
|
|
|
| ^
|
2021-02-15 05:22:31 +00:00
|
|
|
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-15 14:33:27 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:19:17
|
2021-02-15 05:22:31 +00:00
|
|
|
|
|
2021-02-15 14:33:27 +00:00
|
|
|
LL | let x = 0.12;
|
|
|
|
| ^^^^
|
2021-02-15 05:22:31 +00:00
|
|
|
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-15 14:33:27 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:37:21
|
2021-02-15 05:22:31 +00:00
|
|
|
|
|
2021-02-15 14:33:27 +00:00
|
|
|
LL | let y = 1;
|
|
|
|
| ^
|
2021-02-15 05:22:31 +00:00
|
|
|
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-15 14:33:27 +00:00
|
|
|
--> $DIR/default_numeric_fallback.rs:73:21
|
2021-02-15 05:22:31 +00:00
|
|
|
|
|
2021-02-15 14:33:27 +00:00
|
|
|
LL | generic_arg(1);
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
|
|
|
--> $DIR/default_numeric_fallback.rs:76:32
|
|
|
|
|
|
|
|
|
LL | let x: _ = generic_arg(1);
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
|
|
|
--> $DIR/default_numeric_fallback.rs:96:23
|
|
|
|
|
|
|
|
|
LL | s.generic_arg(1);
|
|
|
|
| ^
|
2021-02-15 05:22:31 +00:00
|
|
|
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
|
2021-02-15 14:33:27 +00:00
|
|
|
error: aborting due to 17 previous errors
|
2021-02-02 03:26:20 +00:00
|
|
|
|