]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/zero_ptr.stderr
643b2dafbdc138892fc0b6d2318fdca9c4e6e033
[rust.git] / clippy_tests / examples / zero_ptr.stderr
1 error: `0 as *const _` detected. Consider using `ptr::null()`
2  --> zero_ptr.rs:6:13
3   |
4 6 |     let x = 0 as *const usize;
5   |             ^^^^^^^^^^^^^^^^^
6   |
7   = note: `-D zero-ptr` implied by `-D warnings`
8
9 error: `0 as *mut _` detected. Consider using `ptr::null_mut()`
10  --> zero_ptr.rs:7:13
11   |
12 7 |     let y = 0 as *mut f64;
13   |             ^^^^^^^^^^^^^
14   |
15   = note: `-D zero-ptr` implied by `-D warnings`
16
17 error: aborting due to previous error(s)
18
19 error: Could not compile `clippy_tests`.
20
21 To learn more, run the command again with --verbose.