summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/usefulness/integer-ranges/reachability.stderr
blob: 0ffb0ffd82aa0f6735b19c09b065240cd2aa573c (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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
error: unreachable pattern
  --> $DIR/reachability.rs:17:17
   |
LL |     m!(0u8, 42, 42);
   |                 ^^
   |
note: the lint level is defined here
  --> $DIR/reachability.rs:3:9
   |
LL | #![deny(unreachable_patterns)]
   |         ^^^^^^^^^^^^^^^^^^^^

error: unreachable pattern
  --> $DIR/reachability.rs:21:22
   |
LL |     m!(0u8, 20..=30, 20);
   |                      ^^

error: unreachable pattern
  --> $DIR/reachability.rs:22:22
   |
LL |     m!(0u8, 20..=30, 21);
   |                      ^^

error: unreachable pattern
  --> $DIR/reachability.rs:23:22
   |
LL |     m!(0u8, 20..=30, 25);
   |                      ^^

error: unreachable pattern
  --> $DIR/reachability.rs:24:22
   |
LL |     m!(0u8, 20..=30, 29);
   |                      ^^

error: unreachable pattern
  --> $DIR/reachability.rs:25:22
   |
LL |     m!(0u8, 20..=30, 30);
   |                      ^^

error: unreachable pattern
  --> $DIR/reachability.rs:28:21
   |
LL |     m!(0u8, 20..30, 20);
   |                     ^^

error: unreachable pattern
  --> $DIR/reachability.rs:29:21
   |
LL |     m!(0u8, 20..30, 21);
   |                     ^^

error: unreachable pattern
  --> $DIR/reachability.rs:30:21
   |
LL |     m!(0u8, 20..30, 25);
   |                     ^^

error: unreachable pattern
  --> $DIR/reachability.rs:31:21
   |
LL |     m!(0u8, 20..30, 29);
   |                     ^^

error: unreachable pattern
  --> $DIR/reachability.rs:35:22
   |
LL |     m!(0u8, 20..=30, 20..=30);
   |                      ^^^^^^^

error: unreachable pattern
  --> $DIR/reachability.rs:36:22
   |
LL |     m!(0u8, 20.. 30, 20.. 30);
   |                      ^^^^^^^

error: unreachable pattern
  --> $DIR/reachability.rs:37:22
   |
LL |     m!(0u8, 20..=30, 20.. 30);
   |                      ^^^^^^^

error: unreachable pattern
  --> $DIR/reachability.rs:39:22
   |
LL |     m!(0u8, 20..=30, 21..=30);
   |                      ^^^^^^^

error: unreachable pattern
  --> $DIR/reachability.rs:40:22
   |
LL |     m!(0u8, 20..=30, 20..=29);
   |                      ^^^^^^^

error: unreachable pattern
  --> $DIR/reachability.rs:42:24
   |
LL |     m!('a', 'A'..='z', 'a'..='z');
   |                        ^^^^^^^^^

error: unreachable pattern
  --> $DIR/reachability.rs:49:9
   |
LL |         5..=8 => {},
   |         ^^^^^

error: unreachable pattern
  --> $DIR/reachability.rs:55:9
   |
LL |         5..15 => {},
   |         ^^^^^

error: unreachable pattern
  --> $DIR/reachability.rs:62:9
   |
LL |         5..25 => {},
   |         ^^^^^

error: unreachable pattern
  --> $DIR/reachability.rs:70:9
   |
LL |         5..25 => {},
   |         ^^^^^

error: unreachable pattern
  --> $DIR/reachability.rs:76:9
   |
LL |         5..15 => {},
   |         ^^^^^

error: unreachable pattern
  --> $DIR/reachability.rs:83:9
   |
LL |         _ => {},
   |         - matches any value
LL |         '\u{D7FF}'..='\u{E000}' => {},
   |         ^^^^^^^^^^^^^^^^^^^^^^^ unreachable pattern

error: unreachable pattern
  --> $DIR/reachability.rs:104:9
   |
LL |         &FOO => {}
   |         ^^^^

error: unreachable pattern
  --> $DIR/reachability.rs:105:9
   |
LL |         BAR => {}
   |         ^^^

error: aborting due to 24 previous errors