]> git.lizzy.rs Git - rust.git/blob - tests/ui/zero_ptr.stderr
Auto merge of #3635 - matthiaskrgr:revert_random_state_3603, r=xfix
[rust.git] / tests / ui / zero_ptr.stderr
1 error: `0 as *const _` detected. Consider using `ptr::null()`
2   --> $DIR/zero_ptr.rs:12:13
3    |
4 LL |     let x = 0 as *const usize;
5    |             ^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::zero-ptr` implied by `-D warnings`
8
9 error: `0 as *mut _` detected. Consider using `ptr::null_mut()`
10   --> $DIR/zero_ptr.rs:13:13
11    |
12 LL |     let y = 0 as *mut f64;
13    |             ^^^^^^^^^^^^^
14
15 error: aborting due to 2 previous errors
16