diff options
Diffstat (limited to 'tests/incremental/async-lifetimes.rs')
-rw-r--r-- | tests/incremental/async-lifetimes.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/incremental/async-lifetimes.rs b/tests/incremental/async-lifetimes.rs new file mode 100644 index 000000000..90a0b93b9 --- /dev/null +++ b/tests/incremental/async-lifetimes.rs @@ -0,0 +1,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() {} |