rust/src/test/ui/issues/issue-29084.rs
2018-12-25 21:08:33 -07:00

16 lines
303 B
Rust

macro_rules! foo {
($d:expr) => {{
fn bar(d: u8) { }
bar(&mut $d);
//~^ ERROR mismatched types
//~| expected u8, found &mut u8
//~| expected type `u8`
//~| found type `&mut u8`
}}
}
fn main() {
foo!(0u8);
//~^ in this expansion of foo!
}