File: overlapping_range_endpoints.stderr

package info (click to toggle)
rustc 1.85.0%2Bdfsg3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 893,396 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (108 lines) | stat: -rw-r--r-- 3,584 bytes parent folder | download | duplicates (4)
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
error: multiple patterns overlap on their endpoints
  --> $DIR/overlapping_range_endpoints.rs:14: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:1:9
   |
LL | #![deny(overlapping_range_endpoints)]
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: multiple patterns overlap on their endpoints
  --> $DIR/overlapping_range_endpoints.rs:15: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:18:21
   |
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:22: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:26: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:38:9
   |
LL |         0..=10 => {}
   |         ------ this range overlaps on `10_u8`...
LL |         20..=30 => {}
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:38:9
   |
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:45:10
   |
LL |         (0..=10, true) => {}
   |          ------ this range overlaps on `10_u8`...
LL |         (10..20, true) => {}
   |          ^^^^^^ ... with this range
   |
   = note: you likely meant to write mutually exclusive ranges

error: multiple patterns overlap on their endpoints
  --> $DIR/overlapping_range_endpoints.rs:51: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:57: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 10 previous errors