]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/issue-84195-lint-anon-const.rs
Auto merge of #106976 - tmiasko:borrowck-lazy-dominators, r=cjgillot
[rust.git] / tests / ui / macros / issue-84195-lint-anon-const.rs
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
12 fn main() {
13     let val: [u8; len!()] = [];
14 }