summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/dead-code/closure-bang.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/lint/dead-code/closure-bang.stderr')
-rw-r--r--tests/ui/lint/dead-code/closure-bang.stderr17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/lint/dead-code/closure-bang.stderr b/tests/ui/lint/dead-code/closure-bang.stderr
new file mode 100644
index 000000000..119ce11e3
--- /dev/null
+++ b/tests/ui/lint/dead-code/closure-bang.stderr
@@ -0,0 +1,17 @@
+error: unreachable statement
+ --> $DIR/closure-bang.rs:6:5
+ |
+LL | x();
+ | --- any code following this expression is unreachable
+LL | println!("Foo bar");
+ | ^^^^^^^^^^^^^^^^^^^ unreachable statement
+ |
+note: the lint level is defined here
+ --> $DIR/closure-bang.rs:1:9
+ |
+LL | #![deny(unreachable_code)]
+ | ^^^^^^^^^^^^^^^^
+ = note: this error originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: aborting due to previous error
+