Add regression test.
This commit is contained in:
parent
d043f628b8
commit
36598fcf3e
1 changed files with 17 additions and 0 deletions
17
src/test/incremental/async-lifetimes.rs
Normal file
17
src/test/incremental/async-lifetimes.rs
Normal file
|
|
@ -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() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue