mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-09 22:37:34 +00:00
188 lines
5.3 KiB
Plaintext
188 lines
5.3 KiB
Plaintext
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback.rs:37:13
|
|
|
|
|
LL | let x = 22;
|
|
| ^^
|
|
|
|
|
= 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:38:13
|
|
|
|
|
LL | let x = 0.12;
|
|
| ^^^^
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback.rs:39:16
|
|
|
|
|
LL | let x: _ = 13;
|
|
| ^^
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback.rs:40:22
|
|
|
|
|
LL | let x: [_; 3] = [1, 2, 3];
|
|
| ^
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback.rs:40:25
|
|
|
|
|
LL | let x: [_; 3] = [1, 2, 3];
|
|
| ^
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback.rs:40:28
|
|
|
|
|
LL | let x: [_; 3] = [1, 2, 3];
|
|
| ^
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback.rs:41:24
|
|
|
|
|
LL | let x: (_, i32) = (1, 2);
|
|
| ^
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback.rs:41:27
|
|
|
|
|
LL | let x: (_, i32) = (1, 2);
|
|
| ^
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback.rs:43:24
|
|
|
|
|
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:43:27
|
|
|
|
|
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:43:40
|
|
|
|
|
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:43:43
|
|
|
|
|
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:45:19
|
|
|
|
|
LL | let x = match 1 {
|
|
| ^
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback.rs:46:9
|
|
|
|
|
LL | 1 => 1,
|
|
| ^
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback.rs:46:14
|
|
|
|
|
LL | 1 => 1,
|
|
| ^
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback.rs:47:14
|
|
|
|
|
LL | _ => 2,
|
|
| ^
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback.rs:51:15
|
|
|
|
|
LL | break 1;
|
|
| ^
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback.rs:57:23
|
|
|
|
|
LL | break 3;
|
|
| ^
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback.rs:60:15
|
|
|
|
|
LL | break 2;
|
|
| ^
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback.rs:63:32
|
|
|
|
|
LL | let x = GenericStruct { x: 1 };
|
|
| ^
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
error: default numeric fallback might occur
|
|
--> $DIR/default_numeric_fallback.rs:65: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:66: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:67:23
|
|
|
|
|
LL | let f = || -> _ { 1 };
|
|
| ^
|
|
|
|
|
= help: consider adding suffix to avoid default numeric fallback
|
|
|
|
error: aborting due to 23 previous errors
|
|
|