summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/unreachable-lint-1.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/async-await/unreachable-lint-1.stderr')
-rw-r--r--tests/ui/async-await/unreachable-lint-1.stderr16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/async-await/unreachable-lint-1.stderr b/tests/ui/async-await/unreachable-lint-1.stderr
new file mode 100644
index 000000000..e93257889
--- /dev/null
+++ b/tests/ui/async-await/unreachable-lint-1.stderr
@@ -0,0 +1,16 @@
+error: unreachable statement
+ --> $DIR/unreachable-lint-1.rs:5:13
+ |
+LL | return; bar().await;
+ | ------ ^^^^^^^^^^^^ unreachable statement
+ | |
+ | any code following this expression is unreachable
+ |
+note: the lint level is defined here
+ --> $DIR/unreachable-lint-1.rs:2:9
+ |
+LL | #![deny(unreachable_code)]
+ | ^^^^^^^^^^^^^^^^
+
+error: aborting due to previous error
+