]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/force-warn/allowed-cli-deny-by-default-lint.stderr
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[rust.git] / tests / ui / lint / force-warn / allowed-cli-deny-by-default-lint.stderr
1 warning: transmuting &T to &mut T is undefined behavior, even if the reference is unused, consider instead using an UnsafeCell
2   --> $DIR/allowed-cli-deny-by-default-lint.rs:8:17
3    |
4 LL |         let y = std::mem::transmute::<&i32, &mut i32>(&5);
5    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: requested on the command line with `--force-warn mutable-transmutes`
8
9 warning: 1 warning emitted
10