blob: 5067d78d1697048773a80a7441587f62e1267468 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
error: opaque type `Bar` cannot be used in patterns
--> $DIR/structural-match-no-leak.rs:16:9
|
LL | const LEAK_FREE: Bar = leak_free();
| -------------------- constant defined here
...
LL | LEAK_FREE => (),
| ^^^^^^^^^ opaque type can't be used in patterns
error: aborting due to 1 previous error
|