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
6 // (test that no note is generated on this unsafe fn)
9 unsafe { /* unnecessary */ } //~ ERROR unnecessary `unsafe`
17 // (test that no note is generated on this unsafe block)
20 unsafe { /* unnecessary */ } //~ ERROR unnecessary `unsafe`
23 // `()` is fine to zero-initialize as it is zero sized and inhabited.
24 let () = ::std::mem::zeroed();