]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-43250.rs
Rollup merge of #86479 - exphp-forks:float-debug-exponential, r=yaahc
[rust.git] / src / test / ui / issues / issue-43250.rs
1 fn main() {
2     let mut y;
3     const C: u32 = 0;
4     macro_rules! m {
5         ($a:expr) => {
6             let $a = 0;
7         }
8     }
9     m!(y);
10     //~^ ERROR arbitrary expressions aren't allowed in patterns
11     m!(C);
12     //~^ ERROR arbitrary expressions aren't allowed in patterns
13 }