2017-09-28 21:52:10 -05:00
|
|
|
error: reference to zeroed memory
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/invalid_ref.rs:24:24
|
2017-09-28 21:52:10 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let ref_zero: &T = std::mem::zeroed(); // warning
|
2017-09-28 21:52:10 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2018-08-01 09:30:44 -05:00
|
|
|
= note: #[deny(clippy::invalid_ref)] on by default
|
2017-09-28 21:52:10 -05:00
|
|
|
= help: Creation of a null reference is undefined behavior; see https://doc.rust-lang.org/reference/behavior-considered-undefined.html
|
|
|
|
|
|
|
|
error: reference to zeroed memory
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/invalid_ref.rs:28:24
|
2017-09-28 21:52:10 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let ref_zero: &T = core::mem::zeroed(); // warning
|
2017-09-28 21:52:10 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: Creation of a null reference is undefined behavior; see https://doc.rust-lang.org/reference/behavior-considered-undefined.html
|
|
|
|
|
|
|
|
error: reference to zeroed memory
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/invalid_ref.rs:32:24
|
2017-09-28 21:52:10 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let ref_zero: &T = std::intrinsics::init(); // warning
|
2017-09-28 21:52:10 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: Creation of a null reference is undefined behavior; see https://doc.rust-lang.org/reference/behavior-considered-undefined.html
|
|
|
|
|
|
|
|
error: reference to uninitialized memory
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/invalid_ref.rs:36:26
|
2017-09-28 21:52:10 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let ref_uninit: &T = std::mem::uninitialized(); // warning
|
2017-09-28 21:52:10 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: Creation of a null reference is undefined behavior; see https://doc.rust-lang.org/reference/behavior-considered-undefined.html
|
|
|
|
|
|
|
|
error: reference to uninitialized memory
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/invalid_ref.rs:40:26
|
2017-09-28 21:52:10 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let ref_uninit: &T = core::mem::uninitialized(); // warning
|
2017-09-28 21:52:10 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: Creation of a null reference is undefined behavior; see https://doc.rust-lang.org/reference/behavior-considered-undefined.html
|
|
|
|
|
|
|
|
error: reference to uninitialized memory
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/invalid_ref.rs:44:26
|
2017-09-28 21:52:10 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let ref_uninit: &T = std::intrinsics::uninit(); // warning
|
2017-09-28 21:52:10 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: Creation of a null reference is undefined behavior; see https://doc.rust-lang.org/reference/behavior-considered-undefined.html
|
|
|
|
|
2018-01-16 10:06:27 -06:00
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|