rust/tests/compile-fail/unimplemented.rs

17 lines
286 B
Rust
Raw Normal View History

2016-05-31 11:26:03 -05:00
#![feature(custom_attribute)]
#![allow(dead_code, unused_attributes)]
//error-pattern:literal items (e.g. mentions of function items) are unimplemented
2016-05-31 11:26:03 -05:00
static mut X: usize = 5;
#[miri_run]
fn static_mut() {
unsafe {
X = 6;
assert_eq!(X, 6);
}
}
fn main() {}