]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-29084.rs
Rollup merge of #56594 - sdroege:c_void-is-not-never, r=TimNN
[rust.git] / src / test / ui / issues / issue-29084.rs
1 macro_rules! foo {
2     ($d:expr) => {{
3         fn bar(d: u8) { }
4         bar(&mut $d);
5         //~^ ERROR mismatched types
6         //~| expected u8, found &mut u8
7         //~| expected type `u8`
8         //~| found type `&mut u8`
9     }}
10 }
11
12 fn main() {
13     foo!(0u8);
14     //~^ in this expansion of foo!
15 }