1 // This note is annotated because the purpose of the test
2 // is to ensure that certain other notes are not generated.
3 #![deny(unused_unsafe)] //~ NOTE
5 // (test that no note is generated on this unsafe fn)
8 unsafe { /* unnecessary */ } //~ ERROR unnecessary `unsafe`
16 // (test that no note is generated on this unsafe block)
19 unsafe { /* unnecessary */ } //~ ERROR unnecessary `unsafe`
23 let () = ::std::mem::uninitialized();