2021-02-02 12:26:20 +09:00
|
|
|
error: default numeric fallback might occur
|
2021-02-07 18:00:08 +09:00
|
|
|
--> $DIR/default_numeric_fallback.rs:6:13
|
2021-02-02 12:26:20 +09:00
|
|
|
|
|
2021-02-07 18:00:08 +09:00
|
|
|
LL | let x = 1;
|
|
|
|
|
| ^
|
2021-02-02 12:26:20 +09: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-07 18:00:08 +09:00
|
|
|
--> $DIR/default_numeric_fallback.rs:7:13
|
2021-02-02 12:26:20 +09:00
|
|
|
|
|
2021-02-07 18:00:08 +09:00
|
|
|
LL | let x = 0.1;
|
|
|
|
|
| ^^^
|
2021-02-02 12:26:20 +09:00
|
|
|
|
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-07 18:00:08 +09:00
|
|
|
--> $DIR/default_numeric_fallback.rs:8:23
|
2021-02-02 12:26:20 +09:00
|
|
|
|
|
2021-02-07 18:00:08 +09:00
|
|
|
LL | let x = if true { 1 } else { 2 };
|
2021-02-02 12:26:20 +09:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2021-02-07 18:00:08 +09:00
|
|
|
--> $DIR/default_numeric_fallback.rs:8:34
|
2021-02-02 12:26:20 +09:00
|
|
|
|
|
2021-02-07 18:00:08 +09:00
|
|
|
LL | let x = if true { 1 } else { 2 };
|
|
|
|
|
| ^
|
2021-02-02 12:26:20 +09:00
|
|
|
|
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
|
|
2021-02-07 18:00:08 +09:00
|
|
|
error: aborting due to 4 previous errors
|
2021-02-02 12:26:20 +09:00
|
|
|
|