]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-type-limits.stderr
Move parse-fail tests to UI
[rust.git] / src / test / ui / lint / lint-type-limits.stderr
1 error: comparison is useless due to type limits
2   --> $DIR/lint-type-limits.rs:18:11
3    |
4 LL |     while i >= 0 { //~ ERROR comparison is useless due to type limits
5    |           ^^^^^^
6    |
7    = note: requested on the command line with `-D unused-comparisons`
8
9 error: comparison is useless due to type limits
10   --> $DIR/lint-type-limits.rs:29:13
11    |
12 LL |     let _ = u > 255; //~ ERROR comparison is useless due to type limits
13    |             ^^^^^^^
14
15 error: comparison is useless due to type limits
16   --> $DIR/lint-type-limits.rs:30:13
17    |
18 LL |     let _ = 255 < u; //~ ERROR comparison is useless due to type limits
19    |             ^^^^^^^
20
21 error: comparison is useless due to type limits
22   --> $DIR/lint-type-limits.rs:31:13
23    |
24 LL |     let _ = u < 0; //~ ERROR comparison is useless due to type limits
25    |             ^^^^^
26
27 error: comparison is useless due to type limits
28   --> $DIR/lint-type-limits.rs:32:13
29    |
30 LL |     let _ = 0 > u; //~ ERROR comparison is useless due to type limits
31    |             ^^^^^
32
33 error: comparison is useless due to type limits
34   --> $DIR/lint-type-limits.rs:33:13
35    |
36 LL |     let _ = u <= 255; //~ ERROR comparison is useless due to type limits
37    |             ^^^^^^^^
38
39 error: comparison is useless due to type limits
40   --> $DIR/lint-type-limits.rs:34:13
41    |
42 LL |     let _ = 255 >= u; //~ ERROR comparison is useless due to type limits
43    |             ^^^^^^^^
44
45 error: comparison is useless due to type limits
46   --> $DIR/lint-type-limits.rs:35:13
47    |
48 LL |     let _ = u >= 0; //~ ERROR comparison is useless due to type limits
49    |             ^^^^^^
50
51 error: comparison is useless due to type limits
52   --> $DIR/lint-type-limits.rs:36:13
53    |
54 LL |     let _ = 0 <= u; //~ ERROR comparison is useless due to type limits
55    |             ^^^^^^
56
57 error: aborting due to 9 previous errors
58