diff options
Diffstat (limited to 'tests/ui/zero_ptr_no_std.fixed')
| -rw-r--r-- | tests/ui/zero_ptr_no_std.fixed | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/zero_ptr_no_std.fixed b/tests/ui/zero_ptr_no_std.fixed index 25143eee8cc..bbb2464e41d 100644 --- a/tests/ui/zero_ptr_no_std.fixed +++ b/tests/ui/zero_ptr_no_std.fixed @@ -4,7 +4,10 @@ pub fn main(_argc: isize, _argv: *const *const u8) -> isize { let _ = core::ptr::null::<usize>(); + //~^ zero_ptr let _ = core::ptr::null_mut::<f64>(); + //~^ zero_ptr let _: *const u8 = core::ptr::null(); + //~^ zero_ptr 0 } |
