]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/issue-29084.rs
Rollup merge of #105796 - notriddle:notriddle/rustdoc-search-stop-doing-demerits...
[rust.git] / tests / ui / macros / 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     }}
8 }
9
10 fn main() {
11     foo!(0u8);
12     //~^ in this expansion of foo!
13 }