]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/issue-29084.stderr
Rollup merge of #106783 - WaffleLapkin:break-my-ident, r=wesleywiser
[rust.git] / tests / ui / macros / issue-29084.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-29084.rs:4:13
3    |
4 LL |         bar(&mut $d);
5    |         --- ^^^^^^^ expected `u8`, found `&mut u8`
6    |         |
7    |         arguments to this function are incorrect
8 ...
9 LL |     foo!(0u8);
10    |     --------- in this macro invocation
11    |
12 note: function defined here
13   --> $DIR/issue-29084.rs:3:12
14    |
15 LL |         fn bar(d: u8) { }
16    |            ^^^ -----
17 ...
18 LL |     foo!(0u8);
19    |     --------- in this macro invocation
20    = note: this error originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
21
22 error: aborting due to previous error
23
24 For more information about this error, try `rustc --explain E0308`.