|
1 | 1 | error: default numeric fallback might occur |
2 | | - --> $DIR/default_numeric_fallback.rs:29:13 |
| 2 | + --> $DIR/default_numeric_fallback.rs:10:17 |
3 | 3 | | |
4 | | -LL | let x = 1; |
5 | | - | ^ |
| 4 | +LL | let x = 22; |
| 5 | + | ^^ |
6 | 6 | | |
7 | 7 | = note: `-D clippy::default-numeric-fallback` implied by `-D warnings` |
8 | 8 | = help: consider adding suffix to avoid default numeric fallback |
9 | 9 |
|
10 | 10 | error: default numeric fallback might occur |
11 | | - --> $DIR/default_numeric_fallback.rs:30:13 |
| 11 | + --> $DIR/default_numeric_fallback.rs:11:18 |
| 12 | + | |
| 13 | +LL | let x = [1, 2, 3]; |
| 14 | + | ^ |
| 15 | + | |
| 16 | + = help: consider adding suffix to avoid default numeric fallback |
| 17 | + |
| 18 | +error: default numeric fallback might occur |
| 19 | + --> $DIR/default_numeric_fallback.rs:11:21 |
| 20 | + | |
| 21 | +LL | let x = [1, 2, 3]; |
| 22 | + | ^ |
| 23 | + | |
| 24 | + = help: consider adding suffix to avoid default numeric fallback |
| 25 | + |
| 26 | +error: default numeric fallback might occur |
| 27 | + --> $DIR/default_numeric_fallback.rs:11:24 |
12 | 28 | | |
13 | | -LL | let x = 0.1; |
14 | | - | ^^^ |
| 29 | +LL | let x = [1, 2, 3]; |
| 30 | + | ^ |
15 | 31 | | |
16 | 32 | = help: consider adding suffix to avoid default numeric fallback |
17 | 33 |
|
18 | 34 | error: default numeric fallback might occur |
19 | | - --> $DIR/default_numeric_fallback.rs:32:23 |
| 35 | + --> $DIR/default_numeric_fallback.rs:12:28 |
| 36 | + | |
| 37 | +LL | let x = if true { (1, 2) } else { (3, 4) }; |
| 38 | + | ^ |
| 39 | + | |
| 40 | + = help: consider adding suffix to avoid default numeric fallback |
| 41 | + |
| 42 | +error: default numeric fallback might occur |
| 43 | + --> $DIR/default_numeric_fallback.rs:12:31 |
| 44 | + | |
| 45 | +LL | let x = if true { (1, 2) } else { (3, 4) }; |
| 46 | + | ^ |
| 47 | + | |
| 48 | + = help: consider adding suffix to avoid default numeric fallback |
| 49 | + |
| 50 | +error: default numeric fallback might occur |
| 51 | + --> $DIR/default_numeric_fallback.rs:12:44 |
| 52 | + | |
| 53 | +LL | let x = if true { (1, 2) } else { (3, 4) }; |
| 54 | + | ^ |
20 | 55 | | |
21 | | -LL | let x = if true { 1 } else { 2 }; |
| 56 | + = help: consider adding suffix to avoid default numeric fallback |
| 57 | + |
| 58 | +error: default numeric fallback might occur |
| 59 | + --> $DIR/default_numeric_fallback.rs:12:47 |
| 60 | + | |
| 61 | +LL | let x = if true { (1, 2) } else { (3, 4) }; |
| 62 | + | ^ |
| 63 | + | |
| 64 | + = help: consider adding suffix to avoid default numeric fallback |
| 65 | + |
| 66 | +error: default numeric fallback might occur |
| 67 | + --> $DIR/default_numeric_fallback.rs:13:23 |
| 68 | + | |
| 69 | +LL | let x = match 1 { |
22 | 70 | | ^ |
23 | 71 | | |
24 | 72 | = help: consider adding suffix to avoid default numeric fallback |
25 | 73 |
|
26 | 74 | error: default numeric fallback might occur |
27 | | - --> $DIR/default_numeric_fallback.rs:32:34 |
| 75 | + --> $DIR/default_numeric_fallback.rs:14:13 |
28 | 76 | | |
29 | | -LL | let x = if true { 1 } else { 2 }; |
30 | | - | ^ |
| 77 | +LL | 1 => 1, |
| 78 | + | ^ |
31 | 79 | | |
32 | 80 | = help: consider adding suffix to avoid default numeric fallback |
33 | 81 |
|
34 | 82 | error: default numeric fallback might occur |
35 | | - --> $DIR/default_numeric_fallback.rs:35:17 |
| 83 | + --> $DIR/default_numeric_fallback.rs:14:18 |
36 | 84 | | |
37 | | -LL | let y = 1; |
38 | | - | ^ |
| 85 | +LL | 1 => 1, |
| 86 | + | ^ |
39 | 87 | | |
40 | 88 | = help: consider adding suffix to avoid default numeric fallback |
41 | 89 |
|
42 | 90 | error: default numeric fallback might occur |
43 | | - --> $DIR/default_numeric_fallback.rs:39:17 |
| 91 | + --> $DIR/default_numeric_fallback.rs:15:18 |
44 | 92 | | |
45 | | -LL | generic_arg(10); |
46 | | - | ^^ |
| 93 | +LL | _ => 2, |
| 94 | + | ^ |
47 | 95 | | |
48 | 96 | = help: consider adding suffix to avoid default numeric fallback |
49 | 97 |
|
50 | 98 | error: default numeric fallback might occur |
51 | | - --> $DIR/default_numeric_fallback.rs:40:19 |
| 99 | + --> $DIR/default_numeric_fallback.rs:19:17 |
52 | 100 | | |
53 | | -LL | s.generic_arg(10); |
54 | | - | ^^ |
| 101 | +LL | let x = 0.12; |
| 102 | + | ^^^^ |
55 | 103 | | |
56 | 104 | = help: consider adding suffix to avoid default numeric fallback |
57 | 105 |
|
58 | 106 | error: default numeric fallback might occur |
59 | | - --> $DIR/default_numeric_fallback.rs:41:28 |
| 107 | + --> $DIR/default_numeric_fallback.rs:37:21 |
60 | 108 | | |
61 | | -LL | let x: _ = generic_arg(10); |
62 | | - | ^^ |
| 109 | +LL | let y = 1; |
| 110 | + | ^ |
63 | 111 | | |
64 | 112 | = help: consider adding suffix to avoid default numeric fallback |
65 | 113 |
|
66 | 114 | error: default numeric fallback might occur |
67 | | - --> $DIR/default_numeric_fallback.rs:42:30 |
| 115 | + --> $DIR/default_numeric_fallback.rs:73:21 |
68 | 116 | | |
69 | | -LL | let x: _ = s.generic_arg(10); |
70 | | - | ^^ |
| 117 | +LL | generic_arg(1); |
| 118 | + | ^ |
| 119 | + | |
| 120 | + = help: consider adding suffix to avoid default numeric fallback |
| 121 | + |
| 122 | +error: default numeric fallback might occur |
| 123 | + --> $DIR/default_numeric_fallback.rs:76:32 |
| 124 | + | |
| 125 | +LL | let x: _ = generic_arg(1); |
| 126 | + | ^ |
| 127 | + | |
| 128 | + = help: consider adding suffix to avoid default numeric fallback |
| 129 | + |
| 130 | +error: default numeric fallback might occur |
| 131 | + --> $DIR/default_numeric_fallback.rs:96:23 |
| 132 | + | |
| 133 | +LL | s.generic_arg(1); |
| 134 | + | ^ |
71 | 135 | | |
72 | 136 | = help: consider adding suffix to avoid default numeric fallback |
73 | 137 |
|
74 | | -error: aborting due to 9 previous errors |
| 138 | +error: aborting due to 17 previous errors |
75 | 139 |
|
0 commit comments