]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/issue-81543-item-parse-err.rs
Rollup merge of #106797 - FawazTirmizi:dev/issues/104284, r=bjorn3
[rust.git] / tests / 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() {}