diff options
Diffstat (limited to 'tests/ui/macros/issue-29084.rs')
-rw-r--r-- | tests/ui/macros/issue-29084.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/macros/issue-29084.rs b/tests/ui/macros/issue-29084.rs new file mode 100644 index 000000000..d16252686 --- /dev/null +++ b/tests/ui/macros/issue-29084.rs @@ -0,0 +1,13 @@ +macro_rules! foo { + ($d:expr) => {{ + fn bar(d: u8) { } + bar(&mut $d); + //~^ ERROR mismatched types + //~| expected `u8`, found `&mut u8` + }} +} + +fn main() { + foo!(0u8); + //~^ in this expansion of foo! +} |