]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/reasons-forbidden.stderr
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[rust.git] / tests / ui / lint / reasons-forbidden.stderr
1 error[E0453]: allow(unsafe_code) incompatible with previous forbid
2   --> $DIR/reasons-forbidden.rs:25:13
3    |
4 LL |     unsafe_code,
5    |     ----------- `forbid` level set here
6 ...
7 LL |     #[allow(unsafe_code)]
8    |             ^^^^^^^^^^^ overruled by previous forbid
9    |
10    = note: our errors & omissions insurance policy doesn't cover unsafe Rust
11
12 error: usage of an `unsafe` block
13   --> $DIR/reasons-forbidden.rs:29:5
14    |
15 LL | /     unsafe {
16 LL | |
17 LL | |
18 LL | |         *a_billion_dollar_mistake
19 LL | |     }
20    | |_____^
21    |
22    = note: our errors & omissions insurance policy doesn't cover unsafe Rust
23 note: the lint level is defined here
24   --> $DIR/reasons-forbidden.rs:14:5
25    |
26 LL |     unsafe_code,
27    |     ^^^^^^^^^^^
28
29 error: aborting due to 2 previous errors
30
31 For more information about this error, try `rustc --explain E0453`.