]> git.lizzy.rs Git - rust.git/blob - tests/incremental/async-lifetimes.rs
Rollup merge of #106766 - GuillaumeGomez:rm-stripper-dead-code, r=notriddle
[rust.git] / tests / incremental / async-lifetimes.rs
1 // revisions: rpass1 rpass2
2 // edition:2021
3
4 // See https://github.com/rust-lang/rust/issues/98890
5
6 #![allow(unused)]
7
8 struct Foo;
9
10 impl Foo {
11     async fn f(&self, _: &&()) -> &() {
12         &()
13     }
14 }
15
16 #[cfg(rpass2)]
17 enum Bar {}
18
19 fn main() {}