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
|
|
|
|
|
2024-11-20 02:15:21 +00:00
|
|
|
LL | const C: U = U { a: 10 };
|
|
|
|
|
| ---------- constant defined here
|
|
|
|
|
...
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | C => {}
|
2024-11-20 03:57:30 +00:00
|
|
|
| ^ can't use a `union` here
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-08-08 14:28:26 +02:00
|
|
|
|