mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-09 22:37:34 +00:00
36 lines
1021 B
Plaintext
36 lines
1021 B
Plaintext
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback.rs:6:13
|
|
|
|
|
LL | let x = 1;
|
|
| ^
|
|
|
|
|
= 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
|
|
--> $DIR/default_numeric_fallback.rs:7:13
|
|
|
|
|
LL | let x = 0.1;
|
|
| ^^^
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback.rs:8:23
|
|
|
|
|
LL | let x = if true { 1 } else { 2 };
|
|
| ^
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback.rs:8:34
|
|
|
|
|
LL | let x = if true { 1 } else { 2 };
|
|
| ^
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
error: aborting due to 4 previous errors
|
|
|