about summary refs log tree commit diff
path: root/tests/ui/zero_ptr.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/zero_ptr.fixed')
-rw-r--r--tests/ui/zero_ptr.fixed5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/zero_ptr.fixed b/tests/ui/zero_ptr.fixed
index 5d99bc9b757..f2375d57f3a 100644
--- a/tests/ui/zero_ptr.fixed
+++ b/tests/ui/zero_ptr.fixed
@@ -2,11 +2,16 @@ pub fn foo(_const: *const f32, _mut: *mut i64) {}
 
 fn main() {
     let _ = std::ptr::null::<usize>();
+    //~^ zero_ptr
     let _ = std::ptr::null_mut::<f64>();
+    //~^ zero_ptr
     let _: *const u8 = std::ptr::null();
+    //~^ zero_ptr
 
     foo(0 as _, 0 as _);
     foo(std::ptr::null(), std::ptr::null_mut());
+    //~^ zero_ptr
+    //~| zero_ptr
 
     let z = 0;
     let _ = z as *const usize; // this is currently not caught