]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-96258.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[rust.git] / src / test / 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 }