mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 05:34:45 +00:00

- Add primary span labels. - Point at const generic parameter used as pattern. - Point at statics used as pattern. - Point at let bindings used in const pattern.
12 lines
262 B
Plaintext
12 lines
262 B
Plaintext
error: cannot use unions in constant patterns
|
|
--> $DIR/union-const-pat.rs:10:9
|
|
|
|
|
LL | const C: U = U { a: 10 };
|
|
| ---------- constant defined here
|
|
...
|
|
LL | C => {}
|
|
| ^ can't use a `union` here
|
|
|
|
error: aborting due to 1 previous error
|
|
|