1 // Regression test for issue #84195
2 // Checks that we properly fire lints that occur inside
3 // anon consts.
4 
5 #![deny(semicolon_in_expressions_from_macros)]
6 
7 macro_rules! len {
8     () => { 0; }; //~  ERROR trailing semicolon
9                   //~| WARN this was previously accepted
10 }
11 
main()12 fn main() {
13     let val: [u8; len!()] = [];
14 }
15