mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
11 lines
417 B
Plaintext
11 lines
417 B
Plaintext
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
|
|
|