about summary refs log tree commit diff
path: root/tests/ui/async-await/unreachable-lint-2.stderr
blob: cbebc9951f32d13802fa40ac45eec9fd3aade13d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: unreachable statement
  --> $DIR/unreachable-lint-2.rs:7:5
   |
LL |     endless().await;
   |               ----- any code following this expression is unreachable
LL |     println!("this is unreachable!");
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
   |
note: the lint level is defined here
  --> $DIR/unreachable-lint-2.rs:3: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 1 previous error