about summary refs log tree commit diff
path: root/tests/ui/inline-const/expr-unsafe.thir.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/inline-const/expr-unsafe.thir.stderr')
-rw-r--r--tests/ui/inline-const/expr-unsafe.thir.stderr17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/inline-const/expr-unsafe.thir.stderr b/tests/ui/inline-const/expr-unsafe.thir.stderr
new file mode 100644
index 00000000000..4737444fb61
--- /dev/null
+++ b/tests/ui/inline-const/expr-unsafe.thir.stderr
@@ -0,0 +1,17 @@
+warning: unnecessary `unsafe` block
+  --> $DIR/expr-unsafe.rs:12:13
+   |
+LL |     unsafe {
+   |     ------ because it's nested under this `unsafe` block
+...
+LL |             unsafe {}
+   |             ^^^^^^ unnecessary `unsafe` block
+   |
+note: the lint level is defined here
+  --> $DIR/expr-unsafe.rs:4:9
+   |
+LL | #![warn(unused_unsafe)]
+   |         ^^^^^^^^^^^^^
+
+warning: 1 warning emitted
+