rust/tests/compile-fail/unimplemented.rs
2016-06-01 18:50:20 +02:00

17 lines
256 B
Rust

#![feature(custom_attribute)]
#![allow(dead_code, unused_attributes)]
//error-pattern:function pointers are unimplemented
static mut X: usize = 5;
#[miri_run]
fn static_mut() {
unsafe {
X = 6;
assert_eq!(X, 6);
}
}
fn main() {}