rust/tests/ui/default_numeric_fallback.stderr

76 lines
2.1 KiB
Plaintext
Raw Normal View History

2021-02-02 03:26:20 +00:00
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:29:13
2021-02-02 03:26:20 +00:00
|
2021-02-07 09:00:08 +00:00
LL | let x = 1;
| ^
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
--> $DIR/default_numeric_fallback.rs:30:13
2021-02-02 03:26:20 +00:00
|
2021-02-07 09:00:08 +00:00
LL | let x = 0.1;
| ^^^
2021-02-02 03:26:20 +00:00
|
= help: consider adding suffix to avoid default numeric fallback
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:32:23
2021-02-02 03:26:20 +00:00
|
2021-02-07 09:00:08 +00:00
LL | let x = if true { 1 } else { 2 };
2021-02-02 03:26:20 +00:00
| ^
|
= help: consider adding suffix to avoid default numeric fallback
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:32:34
2021-02-02 03:26:20 +00:00
|
2021-02-07 09:00:08 +00:00
LL | let x = if true { 1 } else { 2 };
| ^
2021-02-02 03:26:20 +00:00
|
= help: consider adding suffix to avoid default numeric fallback
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:35:17
|
LL | let y = 1;
| ^
|
= help: consider adding suffix to avoid default numeric fallback
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:39:17
|
LL | generic_arg(10);
| ^^
|
= help: consider adding suffix to avoid default numeric fallback
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:40:19
|
LL | s.generic_arg(10);
| ^^
|
= help: consider adding suffix to avoid default numeric fallback
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:41:28
|
LL | let x: _ = generic_arg(10);
| ^^
|
= help: consider adding suffix to avoid default numeric fallback
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:42:30
|
LL | let x: _ = s.generic_arg(10);
| ^^
|
= help: consider adding suffix to avoid default numeric fallback
error: aborting due to 9 previous errors
2021-02-02 03:26:20 +00:00