ef52be031c
This also passes miri-test-libstd!
9 lines
171 B
Rust
9 lines
171 B
Rust
static X: usize = 5;
|
|
|
|
#[allow(mutable_transmutes)]
|
|
fn main() {
|
|
let _x = unsafe {
|
|
std::mem::transmute::<&usize, &mut usize>(&X) //~ ERROR borrow stack
|
|
};
|
|
}
|