]> git.lizzy.rs Git - rust.git/blob - tests/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-96258.rs
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.rs
1 // compile-flags -Wrust-2021-incompatible-closure-captures
2
3 fn main() {}
4
5 pub(crate) struct Numberer {}
6
7 impl Numberer {
8     pub(crate) async fn new(
9     //~^ ERROR `async fn` is not permitted in Rust 2015
10         interval: Duration,
11         //~^ ERROR cannot find type `Duration` in this scope
12     ) -> Numberer {
13         Numberer {}
14     }
15 }