rust/tests/ui/proc-macro/invalid-punct-ident-4.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
309 B
Rust
Raw Normal View History

//@ aux-build:invalid-punct-ident.rs
//@ needs-unwind proc macro panics to report errors
2020-03-18 12:34:11 +00:00
#[macro_use]
extern crate invalid_punct_ident;
2020-03-17 09:09:18 +00:00
lexer_failure!();
//~^ ERROR proc macro panicked
//~| ERROR unexpected closing delimiter: `)`
2020-03-18 12:34:11 +00:00
fn main() {
let _recovery_witness: () = 0; //~ ERROR mismatched types
}