mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Add regression test.
This commit is contained in:
committed by
Mark Rousskov
parent
d8c7a157e6
commit
5a4723abe4
@@ -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() {}
|
||||
Reference in New Issue
Block a user