]> git.lizzy.rs Git - rust.git/blob - tests/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-96258.stderr
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
[rust.git] / tests / ui / span / drop-location-span-error-rust-2021-incompatible-closure-captures-96258.stderr
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
3    |
4 LL |     pub(crate) async fn new(
5    |                ^^^^^ to use `async fn`, switch to Rust 2018 or later
6    |
7    = help: pass `--edition 2021` to `rustc`
8    = note: for more on editions, read https://doc.rust-lang.org/edition-guide
9
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
12    |
13 LL |         interval: Duration,
14    |                   ^^^^^^^^ not found in this scope
15    |
16 help: consider importing this struct
17    |
18 LL | use std::time::Duration;
19    |
20
21 error: aborting due to 2 previous errors
22
23 Some errors have detailed explanations: E0412, E0670.
24 For more information about an error, try `rustc --explain E0412`.