mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
15 lines
312 B
Rust
15 lines
312 B
Rust
//@ aux-build:test-macros.rs
|
|
|
|
// Regression test for issue #81543
|
|
// Tests that we emit a properly spanned error
|
|
// when the output of a proc-macro cannot be parsed
|
|
// as the expected AST node kind
|
|
|
|
extern crate test_macros;
|
|
|
|
test_macros::identity! {
|
|
fn 32() {} //~ ERROR expected identifier
|
|
}
|
|
|
|
fn main() {}
|