]> git.lizzy.rs Git - rust.git/blob - src/test/incremental/async-lifetimes.rs
Add regression test.
[rust.git] / src / test / incremental / async-lifetimes.rs
1 // revisions: rpass1 rpass2
2 // edition:2021
3
4 #![allow(unused)]
5
6 struct Foo;
7
8 impl Foo {
9     async fn f(&self, _: &&()) -> &() {
10         &()
11     }
12 }
13
14 #[cfg(rpass2)]
15 enum Bar {}
16
17 fn main() {}