Files
rust/tests/ui/union/union-const-pat.stderr

12 lines
262 B
Plaintext
Raw Normal View History

2018-08-08 14:28:26 +02:00
error: cannot use unions in constant patterns
2018-12-25 08:56:47 -07:00
--> $DIR/union-const-pat.rs:10:9
2018-08-08 14:28:26 +02:00
|
LL | const C: U = U { a: 10 };
| ---------- constant defined here
...
2019-03-09 15:03:44 +03:00
LL | C => {}
| ^ can't use a `union` here
2018-08-08 14:28:26 +02:00
error: aborting due to 1 previous error
2018-08-08 14:28:26 +02:00