Unfortunately, the diagnotic machinery does not cope well with an empty span which can happen if the crate is empty, in which case we merely set a spanless note.
3 lines
103 B
Rust
3 lines
103 B
Rust
#![allow(unused_variables)]; //~ ERROR expected item, found `;`
|
|
//~^ ERROR `main` function
|
|
fn foo() {}
|