summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/force-warn/allowed-deny-by-default-lint.stderr
blob: 9ef53d47eb931eabfd9df7abe9b1cbbe93e8fb6c (plain)
1
2
3
4
5
6
7
8
9
10
warning: transmuting &T to &mut T is undefined behavior, even if the reference is unused, consider instead using an UnsafeCell
  --> $DIR/allowed-deny-by-default-lint.rs:9:17
   |
LL |         let y = std::mem::transmute::<&i32, &mut i32>(&5);
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: requested on the command line with `--force-warn mutable-transmutes`

warning: 1 warning emitted