summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/usefulness/integer-ranges/overlapping_range_endpoints.stderr
blob: ea0e8f6e49e0705d11f8b487429795113e500314 (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
error: multiple patterns overlap on their endpoints
  --> $DIR/overlapping_range_endpoints.rs:15:22
   |
LL |     m!(0u8, 20..=30, 30..=40);
   |             -------  ^^^^^^^ ... with this range
   |             |
   |             this range overlaps on `30_u8`...
   |
   = note: you likely meant to write mutually exclusive ranges
note: the lint level is defined here
  --> $DIR/overlapping_range_endpoints.rs:2:9
   |
LL | #![deny(overlapping_range_endpoints)]
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: multiple patterns overlap on their endpoints
  --> $DIR/overlapping_range_endpoints.rs:16:22
   |
LL |     m!(0u8, 30..=40, 20..=30);
   |             -------  ^^^^^^^ ... with this range
   |             |
   |             this range overlaps on `30_u8`...
   |
   = note: you likely meant to write mutually exclusive ranges

error: multiple patterns overlap on their endpoints
  --> $DIR/overlapping_range_endpoints.rs:19:22
   |
LL |     m!(0u8, 20.. 30, 29..=40);
   |             -------  ^^^^^^^ ... with this range
   |             |
   |             this range overlaps on `29_u8`...
   |
   = note: you likely meant to write mutually exclusive ranges

error: multiple patterns overlap on their endpoints
  --> $DIR/overlapping_range_endpoints.rs:23:22
   |
LL |     m!(0u8, 20..=30, 30..=31);
   |             -------  ^^^^^^^ ... with this range
   |             |
   |             this range overlaps on `30_u8`...
   |
   = note: you likely meant to write mutually exclusive ranges

error: multiple patterns overlap on their endpoints
  --> $DIR/overlapping_range_endpoints.rs:27:22
   |
LL |     m!(0u8, 20..=30, 19..=20);
   |             -------  ^^^^^^^ ... with this range
   |             |
   |             this range overlaps on `20_u8`...
   |
   = note: you likely meant to write mutually exclusive ranges

error: multiple patterns overlap on their endpoints
  --> $DIR/overlapping_range_endpoints.rs:39:9
   |
LL |         0..=10 => {}
   |         ------ this range overlaps on `10_u8`...
LL |         20..=30 => {}
   |         ------- this range overlaps on `20_u8`...
LL |         10..=20 => {}
   |         ^^^^^^^ ... with this range
   |
   = note: you likely meant to write mutually exclusive ranges

error: multiple patterns overlap on their endpoints
  --> $DIR/overlapping_range_endpoints.rs:50:16
   |
LL |         (true, 0..=10) => {}
   |                ------ this range overlaps on `10_u8`...
LL |         (true, 10..20) => {}
   |                ^^^^^^ ... with this range
   |
   = note: you likely meant to write mutually exclusive ranges

error: multiple patterns overlap on their endpoints
  --> $DIR/overlapping_range_endpoints.rs:56:14
   |
LL |         Some(0..=10) => {}
   |              ------ this range overlaps on `10_u8`...
LL |         Some(10..20) => {}
   |              ^^^^^^ ... with this range
   |
   = note: you likely meant to write mutually exclusive ranges

error: aborting due to 8 previous errors