]> git.proxmox.com Git - rustc.git/blob - src/test/ui/proc-macro/issue-81543-item-parse-err.rs
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / proc-macro / issue-81543-item-parse-err.rs
1 // aux-build:test-macros.rs
2
3 // Regression test for issue #81543
4 // Tests that we emit a properly spanned error
5 // when the output of a proc-macro cannot be parsed
6 // as the expected AST node kind
7
8 extern crate test_macros;
9
10 test_macros::identity! {
11 fn 32() {} //~ ERROR expected identifier
12 }
13
14 fn main() {}