rust/tests/ui/lint/force-warn/deny-by-default-lint.stderr
2023-01-11 09:32:08 +00:00

11 lines
409 B
Plaintext

warning: transmuting &T to &mut T is undefined behavior, even if the reference is unused, consider instead using an UnsafeCell
--> $DIR/deny-by-default-lint.rs:7: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