blob: 2bb6d2b8fef7c032c0d7519d3131d414392825bb [file] [log] [blame]
error[E0080]: constant accesses mutable global memory
--> $DIR/const_refs_to_static_fail.rs:14:13
|
LL | assert!(*C1.get() == 0);
| ^^^^^^^^^ evaluation of `C1_READ` failed here
error[E0080]: constant accesses mutable global memory
--> $DIR/const_refs_to_static_fail.rs:18:13
|
LL | assert!(*C2 == 0);
| ^^^ evaluation of `C2_READ` failed here
error: constant BAD_PATTERN cannot be used as pattern
--> $DIR/const_refs_to_static_fail.rs:28:9
|
LL | BAD_PATTERN => {},
| ^^^^^^^^^^^
|
= note: constants that reference mutable or external memory cannot be used as patterns
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0080`.