2017-09-29 02:52:10 +00:00
|
|
|
error: reference to zeroed memory
|
2018-10-06 16:18:06 +00:00
|
|
|
--> $DIR/invalid_ref.rs:37:24
|
2017-09-29 02:52:10 +00:00
|
|
|
|
|
2018-10-06 16:18:06 +00:00
|
|
|
37 | let ref_zero: &T = std::mem::zeroed(); // warning
|
2017-09-29 02:52:10 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
= note: #[deny(clippy::invalid_ref)] on by default
|
2017-09-29 02:52:10 +00: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
|
2018-10-06 16:18:06 +00:00
|
|
|
--> $DIR/invalid_ref.rs:41:24
|
2017-09-29 02:52:10 +00:00
|
|
|
|
|
2018-10-06 16:18:06 +00:00
|
|
|
41 | let ref_zero: &T = core::mem::zeroed(); // warning
|
2017-09-29 02:52:10 +00: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
|
2018-10-06 16:18:06 +00:00
|
|
|
--> $DIR/invalid_ref.rs:45:24
|
2017-09-29 02:52:10 +00:00
|
|
|
|
|
2018-10-06 16:18:06 +00:00
|
|
|
45 | let ref_zero: &T = std::intrinsics::init(); // warning
|
2017-09-29 02:52:10 +00: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
|
2018-10-06 16:18:06 +00:00
|
|
|
--> $DIR/invalid_ref.rs:49:26
|
2017-09-29 02:52:10 +00:00
|
|
|
|
|
2018-10-06 16:18:06 +00:00
|
|
|
49 | let ref_uninit: &T = std::mem::uninitialized(); // warning
|
2017-09-29 02:52:10 +00: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
|
2018-10-06 16:18:06 +00:00
|
|
|
--> $DIR/invalid_ref.rs:53:26
|
2017-09-29 02:52:10 +00:00
|
|
|
|
|
2018-10-06 16:18:06 +00:00
|
|
|
53 | let ref_uninit: &T = core::mem::uninitialized(); // warning
|
2017-09-29 02:52:10 +00: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
|
2018-10-06 16:18:06 +00:00
|
|
|
--> $DIR/invalid_ref.rs:57:26
|
2017-09-29 02:52:10 +00:00
|
|
|
|
|
2018-10-06 16:18:06 +00:00
|
|
|
57 | let ref_uninit: &T = std::intrinsics::uninit(); // warning
|
2017-09-29 02:52:10 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: Creation of a null reference is undefined behavior; see https://doc.rust-lang.org/reference/behavior-considered-undefined.html
|
|
|
|
|
2018-01-16 16:06:27 +00:00
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|