]> git.proxmox.com Git - rustc.git/blame - src/test/ui/macros/macro-error.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / macros / macro-error.rs
CommitLineData
92a42be0 1macro_rules! foo {
8bb4bdeb 2 ($a:expr) => a; //~ ERROR macro rhs must be delimited
92a42be0
SL
3}
4
5fn main() {
3157f602
XL
6 foo!(0); // Check that we report errors at macro definition, not expansion.
7
8 let _: cfg!(foo) = (); //~ ERROR non-type macro in type position
92a42be0 9}