2021-02-24 07:02:51 -06:00
|
|
|
error: transmuting a known null pointer into a reference
|
2019-03-26 09:12:14 -05:00
|
|
|
--> $DIR/transmuting_null.rs:10:23
|
|
|
|
|
|
|
|
|
LL | let _: &u64 = std::mem::transmute(0 as *const u64);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::transmuting-null` implied by `-D warnings`
|
|
|
|
|
2021-02-24 07:02:51 -06:00
|
|
|
error: transmuting a known null pointer into a reference
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/transmuting_null.rs:13:23
|
2019-03-26 09:12:14 -05:00
|
|
|
|
|
|
|
|
LL | let _: &u64 = std::mem::transmute(std::ptr::null::<u64>());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2021-02-24 07:02:51 -06:00
|
|
|
error: transmuting a known null pointer into a reference
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/transmuting_null.rs:24:23
|
2019-03-26 09:12:14 -05:00
|
|
|
|
|
|
|
|
LL | let _: &u64 = std::mem::transmute(ZPTR);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|