]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/macros/macro-context.rs
1 // (typeof used because it's surprisingly hard to find an unparsed token after a stmt)
3 () => ( i
; typeof ); //~ ERROR expected expression, found reserved keyword `typeof`
4 //~| ERROR macro expansion ignores token `typeof`
5 //~| ERROR macro expansion ignores token `;`
6 //~| ERROR macro expansion ignores token `;`
7 //~| ERROR cannot find type `i` in this scope
8 //~| ERROR cannot find value `i` in this scope
9 //~| WARN trailing semicolon in macro
10 //~| WARN this was previously