1 #![feature(lint_reasons)]
5 //~^ NOTE `forbid` level set here
6 //~| NOTE `forbid` level set here
7 //~| NOTE `forbid` level set here
8 reason = "our errors & omissions insurance policy doesn't cover unsafe Rust"
14 let a_billion_dollar_mistake = ptr::null();
17 //~^ ERROR allow(unsafe_code) overruled by outer forbid(unsafe_code)
18 //~| ERROR allow(unsafe_code) overruled by outer forbid(unsafe_code)
19 //~| ERROR allow(unsafe_code) overruled by outer forbid(unsafe_code)
20 //~| NOTE overruled by previous forbid
21 //~| NOTE overruled by previous forbid
22 //~| NOTE overruled by previous forbid
23 //~| NOTE our errors & omissions insurance policy doesn't cover unsafe Rust
24 //~| NOTE our errors & omissions insurance policy doesn't cover unsafe Rust
25 //~| NOTE our errors & omissions insurance policy doesn't cover unsafe Rust
27 *a_billion_dollar_mistake