diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-07-06 10:56:35 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-07-06 10:56:35 +0200 |
| commit | 9715ea4562ef9eabcf326167a15305eba266b40a (patch) | |
| tree | 9e434bde0f1447a9b1a829d1df5df86cf550ffdc | |
| parent | 2a7abed87f5cb50620c3d81ac4fd1c5f9380e08e (diff) | |
| download | rust-9715ea4562ef9eabcf326167a15305eba266b40a.tar.gz rust-9715ea4562ef9eabcf326167a15305eba266b40a.zip | |
Add regression test.
| -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() {} |
