This commit fixes a regression introduced in rust-lang/rust#70369 which meant that an error was not being emitted for invalid placeholder types when there wasn't a span available. Signed-off-by: David Wood <david@davidtw.co>
4 lines
146 B
Rust
4 lines
146 B
Rust
fn main() {
|
|
static BUG: fn(_) -> u8 = |_| 8;
|
|
//~^ ERROR the type placeholder `_` is not allowed within types on item signatures [E0121]
|
|
}
|