summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/unreachable-lint-1.stderr
blob: e9325788961b274eb6c6456a2a91275f6c713412 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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