Skip to content

Commit 9715ea4

Browse files
committed
Add regression test.
1 parent 2a7abed commit 9715ea4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Diff for: src/test/incremental/async-lifetimes.rs

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// revisions: rpass1 rpass2
2+
// edition:2021
3+
4+
#![allow(unused)]
5+
6+
struct Foo;
7+
8+
impl Foo {
9+
async fn f(&self, _: &&()) -> &() {
10+
&()
11+
}
12+
}
13+
14+
#[cfg(rpass2)]
15+
enum Bar {}
16+
17+
fn main() {}

0 commit comments

Comments
 (0)