blob: 59dc89c77a47c8a3ba5b8e441dd1242e42569185 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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
|