File: consts-opaque.stderr

package info (click to toggle)
rustc 1.87.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 925,564 kB
  • sloc: xml: 158,127; python: 36,039; javascript: 19,761; sh: 19,737; cpp: 18,981; ansic: 13,133; asm: 4,376; makefile: 710; perl: 29; lisp: 28; ruby: 19; sql: 11
file content (179 lines) | stat: -rw-r--r-- 5,938 bytes parent folder | download | duplicates (15)
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon
  --> $DIR/consts-opaque.rs:96:9
   |
LL |     const QUUX: Quux = quux;
   |     ---------------- constant defined here
...
LL |         QUUX => {}
   |         ^^^^ can't be used in patterns
   |
   = note: see https://github.com/rust-lang/rust/issues/70861 for details

error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon
  --> $DIR/consts-opaque.rs:97:9
   |
LL |     const QUUX: Quux = quux;
   |     ---------------- constant defined here
...
LL |         QUUX => {}
   |         ^^^^ can't be used in patterns
   |
   = note: see https://github.com/rust-lang/rust/issues/70861 for details

error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon
  --> $DIR/consts-opaque.rs:106:9
   |
LL |     const WRAPQUUX: Wrap<Quux> = Wrap(quux);
   |     -------------------------- constant defined here
...
LL |         WRAPQUUX => {}
   |         ^^^^^^^^ can't be used in patterns
   |
   = note: see https://github.com/rust-lang/rust/issues/70861 for details

error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon
  --> $DIR/consts-opaque.rs:107:9
   |
LL |     const WRAPQUUX: Wrap<Quux> = Wrap(quux);
   |     -------------------------- constant defined here
...
LL |         WRAPQUUX => {}
   |         ^^^^^^^^ can't be used in patterns
   |
   = note: see https://github.com/rust-lang/rust/issues/70861 for details

error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon
  --> $DIR/consts-opaque.rs:113:9
   |
LL |     const WRAPQUUX: Wrap<Quux> = Wrap(quux);
   |     -------------------------- constant defined here
...
LL |         WRAPQUUX => {}
   |         ^^^^^^^^ can't be used in patterns
   |
   = note: see https://github.com/rust-lang/rust/issues/70861 for details

error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon
  --> $DIR/consts-opaque.rs:121:9
   |
LL |     const WRAPQUUX: Wrap<Quux> = Wrap(quux);
   |     -------------------------- constant defined here
...
LL |         WRAPQUUX => {}
   |         ^^^^^^^^ can't be used in patterns
   |
   = note: see https://github.com/rust-lang/rust/issues/70861 for details

error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon
  --> $DIR/consts-opaque.rs:132:9
   |
LL |     const WHOKNOWSQUUX: WhoKnows<Quux> = WhoKnows::Yay(quux);
   |     ---------------------------------- constant defined here
...
LL |         WHOKNOWSQUUX => {}
   |         ^^^^^^^^^^^^ can't be used in patterns
   |
   = note: see https://github.com/rust-lang/rust/issues/70861 for details

error: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon
  --> $DIR/consts-opaque.rs:134:9
   |
LL |     const WHOKNOWSQUUX: WhoKnows<Quux> = WhoKnows::Yay(quux);
   |     ---------------------------------- constant defined here
...
LL |         WHOKNOWSQUUX => {}
   |         ^^^^^^^^^^^^ can't be used in patterns
   |
   = note: see https://github.com/rust-lang/rust/issues/70861 for details

error: unreachable pattern
  --> $DIR/consts-opaque.rs:48:9
   |
LL |         Bar => {}
   |         --- matches any value
LL |         BAR => {}
   |         ^^^ no value can reach this
   |
note: the lint level is defined here
  --> $DIR/consts-opaque.rs:6:9
   |
LL | #![deny(unreachable_patterns)]
   |         ^^^^^^^^^^^^^^^^^^^^

error: unreachable pattern
  --> $DIR/consts-opaque.rs:50:9
   |
LL |         Bar => {}
   |         --- matches any value
...
LL |         _ => {}
   |         ^ no value can reach this

error: unreachable pattern
  --> $DIR/consts-opaque.rs:56:9
   |
LL |         BAR => {}
   |         --- matches any value
LL |         Bar => {}
   |         ^^^ no value can reach this

error: unreachable pattern
  --> $DIR/consts-opaque.rs:58:9
   |
LL |         BAR => {}
   |         --- matches any value
...
LL |         _ => {}
   |         ^ no value can reach this

error: unreachable pattern
  --> $DIR/consts-opaque.rs:64:9
   |
LL |         BAR => {}
   |         --- matches any value
LL |         BAR => {} // should not be emitting unreachable warning
   |         ^^^ no value can reach this

error: unreachable pattern
  --> $DIR/consts-opaque.rs:66:9
   |
LL |         BAR => {}
   |         --- matches any value
...
LL |         _ => {} // should not be emitting unreachable warning
   |         ^ no value can reach this

error: unreachable pattern
  --> $DIR/consts-opaque.rs:72:9
   |
LL |         BAZ => {}
   |         --- matches all the relevant values
LL |         Baz::Baz1 => {} // should not be emitting unreachable warning
   |         ^^^^^^^^^ no value can reach this

error: unreachable pattern
  --> $DIR/consts-opaque.rs:79:9
   |
LL |         Baz::Baz1 => {}
   |         --------- matches all the relevant values
LL |         BAZ => {}
   |         ^^^ no value can reach this

error: unreachable pattern
  --> $DIR/consts-opaque.rs:87:9
   |
LL |         _ => {} // should not be emitting unreachable warning
   |         ^ no value can reach this
   |
note: multiple earlier patterns match some of the same values
  --> $DIR/consts-opaque.rs:87:9
   |
LL |         BAZ => {}
   |         --- matches some of the same values
LL |         Baz::Baz2 => {}
   |         --------- matches some of the same values
LL |         _ => {} // should not be emitting unreachable warning
   |         ^ collectively making this unreachable

error: aborting due to 17 previous errors