]> git.lizzy.rs Git - rust.git/blob - tests/ui/inline-const/expr-unsafe.thir.stderr
Rollup merge of #106797 - FawazTirmizi:dev/issues/104284, r=bjorn3
[rust.git] / tests / ui / inline-const / expr-unsafe.thir.stderr
1 warning: unnecessary `unsafe` block
2   --> $DIR/expr-unsafe.rs:12:13
3    |
4 LL |     unsafe {
5    |     ------ because it's nested under this `unsafe` block
6 ...
7 LL |             unsafe {}
8    |             ^^^^^^ unnecessary `unsafe` block
9    |
10 note: the lint level is defined here
11   --> $DIR/expr-unsafe.rs:4:9
12    |
13 LL | #![warn(unused_unsafe)]
14    |         ^^^^^^^^^^^^^
15
16 warning: 1 warning emitted
17