rust/tests/ui/default_numeric_fallback.stderr

149 lines
4.8 KiB
Plaintext
Raw Normal View History

2021-02-01 21:26:20 -06:00
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:10:17
2021-02-01 21:26:20 -06:00
|
LL | let x = 22;
| ^^ help: consider adding suffix: `22_i32`
2021-02-01 21:26:20 -06:00
|
= note: `-D clippy::default-numeric-fallback` implied by `-D warnings`
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:11:18
|
LL | let x = [1, 2, 3];
| ^ help: consider adding suffix: `1_i32`
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:11:21
|
LL | let x = [1, 2, 3];
| ^ help: consider adding suffix: `2_i32`
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:11:24
2021-02-01 21:26:20 -06:00
|
LL | let x = [1, 2, 3];
| ^ help: consider adding suffix: `3_i32`
2021-02-01 21:26:20 -06:00
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:12:28
|
LL | let x = if true { (1, 2) } else { (3, 4) };
| ^ help: consider adding suffix: `1_i32`
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:12:31
|
LL | let x = if true { (1, 2) } else { (3, 4) };
| ^ help: consider adding suffix: `2_i32`
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:12:44
|
LL | let x = if true { (1, 2) } else { (3, 4) };
| ^ help: consider adding suffix: `3_i32`
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:12:47
|
LL | let x = if true { (1, 2) } else { (3, 4) };
| ^ help: consider adding suffix: `4_i32`
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:13:23
|
LL | let x = match 1 {
| ^ help: consider adding suffix: `1_i32`
2021-02-01 21:26:20 -06:00
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:14:13
2021-02-01 21:26:20 -06:00
|
LL | 1 => 1,
| ^ help: consider adding suffix: `1_i32`
2021-02-01 21:26:20 -06:00
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:14:18
|
LL | 1 => 1,
| ^ help: consider adding suffix: `1_i32`
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:15:18
|
LL | _ => 2,
| ^ help: consider adding suffix: `2_i32`
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:19:17
|
LL | let x = 0.12;
| ^^^^ help: consider adding suffix: `0.12_f64`
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:37:21
|
LL | let y = 1;
| ^ help: consider adding suffix: `1_i32`
error: default numeric fallback might occur
2021-02-15 20:20:51 -06:00
--> $DIR/default_numeric_fallback.rs:45:21
|
LL | let y = 1;
| ^ help: consider adding suffix: `1_i32`
2021-02-15 20:20:51 -06:00
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:51:21
|
LL | let y = 1;
| ^ help: consider adding suffix: `1_i32`
2021-02-15 20:20:51 -06:00
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:63:9
|
LL | 1
| ^ help: consider adding suffix: `1_i32`
2021-02-15 20:20:51 -06:00
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:69:27
|
LL | let f = || -> _ { 1 };
| ^ help: consider adding suffix: `1_i32`
2021-02-15 20:20:51 -06:00
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:73:29
|
LL | let f = || -> i32 { 1 };
| ^ help: consider adding suffix: `1_i32`
2021-02-15 20:20:51 -06:00
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:87:21
|
LL | generic_arg(1);
| ^ help: consider adding suffix: `1_i32`
error: default numeric fallback might occur
2021-02-15 20:20:51 -06:00
--> $DIR/default_numeric_fallback.rs:90:32
|
LL | let x: _ = generic_arg(1);
| ^ help: consider adding suffix: `1_i32`
error: default numeric fallback might occur
2021-02-15 20:20:51 -06:00
--> $DIR/default_numeric_fallback.rs:108:28
|
LL | GenericStruct { x: 1 };
| ^ help: consider adding suffix: `1_i32`
2021-02-15 20:20:51 -06:00
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:111:36
|
LL | let _ = GenericStruct { x: 1 };
| ^ help: consider adding suffix: `1_i32`
2021-02-15 20:20:51 -06:00
error: default numeric fallback might occur
--> $DIR/default_numeric_fallback.rs:131:23
|
LL | s.generic_arg(1);
| ^ help: consider adding suffix: `1_i32`
2021-02-15 20:20:51 -06:00
error: aborting due to 24 previous errors
2021-02-01 21:26:20 -06:00