rust/tests/ui/default_numeric_fallback.stderr
2021-02-07 18:11:31 +09:00

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