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