diff options
| -rw-r--r-- | src/test/incremental/async-lifetimes.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/incremental/async-lifetimes.rs b/src/test/incremental/async-lifetimes.rs new file mode 100644 index 00000000000..b97725d3b6a --- /dev/null +++ b/src/test/incremental/async-lifetimes.rs @@ -0,0 +1,17 @@ +// revisions: rpass1 rpass2 +// edition:2021 + +#![allow(unused)] + +struct Foo; + +impl Foo { + async fn f(&self, _: &&()) -> &() { + &() + } +} + +#[cfg(rpass2)] +enum Bar {} + +fn main() {} |
