]> git.lizzy.rs Git - rust.git/blob - tests/ui/cmp_null.stderr
Merge pull request #1520 from Manishearth/rustup
[rust.git] / tests / ui / cmp_null.stderr
1 error: Comparing with null is better expressed by the .is_null() method
2   --> $DIR/cmp_null.rs:11:8
3    |
4 11 |     if p == ptr::null() {
5    |        ^^^^^^^^^^^^^^^^
6    |
7 note: lint level defined here
8   --> $DIR/cmp_null.rs:3:9
9    |
10 3  | #![deny(cmp_null)]
11    |         ^^^^^^^^
12
13 error: Comparing with null is better expressed by the .is_null() method
14   --> $DIR/cmp_null.rs:16:8
15    |
16 16 |     if m == ptr::null_mut() {
17    |        ^^^^^^^^^^^^^^^^^^^^
18
19 error: aborting due to 2 previous errors
20