summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-48131.mir.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-48131.mir.stderr')
-rw-r--r--tests/ui/issues/issue-48131.mir.stderr20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-48131.mir.stderr b/tests/ui/issues/issue-48131.mir.stderr
new file mode 100644
index 000000000..6817e8830
--- /dev/null
+++ b/tests/ui/issues/issue-48131.mir.stderr
@@ -0,0 +1,20 @@
+error: unnecessary `unsafe` block
+ --> $DIR/issue-48131.rs:12:9
+ |
+LL | unsafe { /* unnecessary */ }
+ | ^^^^^^ unnecessary `unsafe` block
+ |
+note: the lint level is defined here
+ --> $DIR/issue-48131.rs:6:9
+ |
+LL | #![deny(unused_unsafe)]
+ | ^^^^^^^^^^^^^
+
+error: unnecessary `unsafe` block
+ --> $DIR/issue-48131.rs:23:13
+ |
+LL | unsafe { /* unnecessary */ }
+ | ^^^^^^ unnecessary `unsafe` block
+
+error: aborting due to 2 previous errors
+