summaryrefslogtreecommitdiffstats
path: root/src/test/incremental/async-lifetimes.rs
blob: 90a0b93b99a13f1bb0a2cc4aec217385f30f1ce0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// revisions: rpass1 rpass2
// edition:2021

// See https://github.com/rust-lang/rust/issues/98890

#![allow(unused)]

struct Foo;

impl Foo {
    async fn f(&self, _: &&()) -> &() {
        &()
    }
}

#[cfg(rpass2)]
enum Bar {}

fn main() {}