2018-11-07 07:56:25 -06:00
|
|
|
// FIXME still considering whether we are okay with this not being an error
|
|
|
|
// ignore-test
|
|
|
|
|
2018-10-24 10:17:44 -05:00
|
|
|
static X: usize = 5;
|
|
|
|
|
|
|
|
#[allow(mutable_transmutes)]
|
|
|
|
fn main() {
|
|
|
|
let _x = unsafe {
|
|
|
|
std::mem::transmute::<&usize, &mut usize>(&X) //~ ERROR mutable reference with frozen tag
|
|
|
|
};
|
|
|
|
}
|