2022-07-06 03:56:35 -05:00
|
|
|
// revisions: rpass1 rpass2
|
|
|
|
// edition:2021
|
|
|
|
|
2022-07-06 04:32:55 -05:00
|
|
|
// See https://github.com/rust-lang/rust/issues/98890
|
|
|
|
|
2022-07-06 03:56:35 -05:00
|
|
|
#![allow(unused)]
|
|
|
|
|
|
|
|
struct Foo;
|
|
|
|
|
|
|
|
impl Foo {
|
|
|
|
async fn f(&self, _: &&()) -> &() {
|
|
|
|
&()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(rpass2)]
|
|
|
|
enum Bar {}
|
|
|
|
|
|
|
|
fn main() {}
|