summaryrefslogtreecommitdiffstats
path: root/tests/ui/transmute/transmute-imut-to-mut.stderr
blob: 1e9dff3ce89b26071e6db0ccb1c7deec0337e91a (plain)
1
2
3
4
5
6
7
8
9
10
error: transmuting &T to &mut T is undefined behavior, even if the reference is unused, consider instead using an UnsafeCell
  --> $DIR/transmute-imut-to-mut.rs:6:32
   |
LL |     let _a: &mut u8 = unsafe { transmute(&1u8) };
   |                                ^^^^^^^^^
   |
   = note: `#[deny(mutable_transmutes)]` on by default

error: aborting due to previous error