rust/tests/ui/typeck/bad-recursive-type-sig-infe...

12 lines
259 B
Rust

fn a() -> _ {
//~^ ERROR the placeholder `_` is not allowed within types on item signatures for return types
&a
}
fn b() -> _ {
//~^ ERROR the placeholder `_` is not allowed within types on item signatures for return types
&a
}
fn main() {}