rust-clippy/clippy_tests/examples/zero_ptr.stderr
Georg Brandl 6b6253016f Update stderr files for change in error reporting
rustc now (https://github.com/rust-lang/rust/issues/33525) does not
report an error count anymore, because it was not correct in many cases.
2017-05-26 16:54:07 +02:00

21 lines
553 B
Text

error: `0 as *const _` detected. Consider using `ptr::null()`
--> zero_ptr.rs:6:13
|
6 | let x = 0 as *const usize;
| ^^^^^^^^^^^^^^^^^
|
= note: `-D zero-ptr` implied by `-D warnings`
error: `0 as *mut _` detected. Consider using `ptr::null_mut()`
--> zero_ptr.rs:7:13
|
7 | let y = 0 as *mut f64;
| ^^^^^^^^^^^^^
|
= note: `-D zero-ptr` implied by `-D warnings`
error: aborting due to previous error(s)
error: Could not compile `clippy_tests`.
To learn more, run the command again with --verbose.