fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
704 B24 linesraw
1error[E0308]: mismatched types
2  --> $DIR/issue-29084.rs:4:13
3   |
4LL |         bar(&mut $d);
5   |         --- ^^^^^^^ expected `u8`, found `&mut u8`
6   |         |
7   |         arguments to this function are incorrect
8...
9LL |     foo!(0u8);
10   |     --------- in this macro invocation
11   |
12note: function defined here
13  --> $DIR/issue-29084.rs:3:12
14   |
15LL |         fn bar(d: u8) { }
16   |            ^^^ -----
17...
18LL |     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
22error: aborting due to previous error
23
24For more information about this error, try `rustc --explain E0308`.