]> git.lizzy.rs Git - rust.git/blob - tests/compile-fail/unimplemented.rs
note that not all literal items are function pointers
[rust.git] / tests / compile-fail / unimplemented.rs
1 #![feature(custom_attribute)]
2 #![allow(dead_code, unused_attributes)]
3
4 //error-pattern:literal items (e.g. mentions of function items) are unimplemented
5
6 static mut X: usize = 5;
7
8 #[miri_run]
9 fn static_mut() {
10     unsafe {
11         X = 6;
12         assert_eq!(X, 6);
13     }
14 }
15
16 fn main() {}