1 error[E0670]: `async fn` is not permitted in Rust 2015
2 --> $DIR/drop-location-span-error-rust-2021-incompatible-closure-captures-96258.rs:8:16
4 LL | pub(crate) async fn new(
5 | ^^^^^ to use `async fn`, switch to Rust 2018 or later
7 = help: pass `--edition 2021` to `rustc`
8 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
10 error[E0412]: cannot find type `Duration` in this scope
11 --> $DIR/drop-location-span-error-rust-2021-incompatible-closure-captures-96258.rs:10:19
13 LL | interval: Duration,
14 | ^^^^^^^^ not found in this scope
16 help: consider importing this struct
18 LL | use std::time::Duration;
21 error: aborting due to 2 previous errors
23 Some errors have detailed explanations: E0412, E0670.
24 For more information about an error, try `rustc --explain E0412`.