rust/tests/ui/lint/force-warn/deny-by-default-lint.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
409 B
Plaintext
Raw Normal View History

2022-09-21 11:05:20 +00:00
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
2021-06-02 15:25:24 +00:00
|
2022-09-21 11:05:20 +00:00
LL | let y = std::mem::transmute::<&i32, &mut i32>(&5);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2021-06-02 15:25:24 +00:00
|
2022-09-21 11:05:20 +00:00
= note: requested on the command line with `--force-warn mutable-transmutes`
2021-06-02 15:25:24 +00:00
warning: 1 warning emitted