summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/lint-type-limits.stderr
blob: 71a2b3bfda8c4015ce7d80ee9c694f88bc3c3701 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
error: comparison is useless due to type limits
  --> $DIR/lint-type-limits.rs:8:11
   |
LL |     while i >= 0 {
   |           ^^^^^^
   |
   = note: requested on the command line with `-D unused-comparisons`

error: comparison is useless due to type limits
  --> $DIR/lint-type-limits.rs:19:13
   |
LL |     let _ = u > 255;
   |             ^^^^^^^

error: comparison is useless due to type limits
  --> $DIR/lint-type-limits.rs:20:13
   |
LL |     let _ = 255 < u;
   |             ^^^^^^^

error: comparison is useless due to type limits
  --> $DIR/lint-type-limits.rs:21:13
   |
LL |     let _ = u < 0;
   |             ^^^^^

error: comparison is useless due to type limits
  --> $DIR/lint-type-limits.rs:22:13
   |
LL |     let _ = 0 > u;
   |             ^^^^^

error: comparison is useless due to type limits
  --> $DIR/lint-type-limits.rs:23:13
   |
LL |     let _ = u <= 255;
   |             ^^^^^^^^

error: comparison is useless due to type limits
  --> $DIR/lint-type-limits.rs:24:13
   |
LL |     let _ = 255 >= u;
   |             ^^^^^^^^

error: comparison is useless due to type limits
  --> $DIR/lint-type-limits.rs:25:13
   |
LL |     let _ = u >= 0;
   |             ^^^^^^

error: comparison is useless due to type limits
  --> $DIR/lint-type-limits.rs:26:13
   |
LL |     let _ = 0 <= u;
   |             ^^^^^^

error: aborting due to 9 previous errors