]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/suggest-ref-macro.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / suggestions / suggest-ref-macro.stderr
CommitLineData
17df50a5
XL
1error[E0308]: mismatched types
2 --> $DIR/suggest-ref-macro.rs:15:11
3 |
4LL | x(123);
923072b8
FG
5 | - ^^^
6 | | |
7 | | expected `&mut i32`, found integer
8 | | help: consider mutably borrowing here: `&mut 123`
9 | arguments to this function are incorrect
17df50a5
XL
10...
11LL | bla!();
c295e0f8 12 | ------ in this macro invocation
17df50a5 13 |
923072b8
FG
14note: function defined here
15 --> $DIR/suggest-ref-macro.rs:11:4
16 |
17LL | fn x(_: &mut i32) {}
18 | ^ -----------
17df50a5
XL
19 = note: this error originates in the macro `bla` (in Nightly builds, run with -Z macro-backtrace for more info)
20
21error[E0308]: mismatched types
22 --> $DIR/suggest-ref-macro.rs:26:10
23 |
923072b8
FG
24LL | x($v)
25 | - arguments to this function are incorrect
26...
17df50a5
XL
27LL | bla!(456);
28 | ^^^
29 | |
30 | expected `&mut i32`, found integer
31 | help: consider mutably borrowing here: `&mut 456`
923072b8
FG
32 |
33note: function defined here
34 --> $DIR/suggest-ref-macro.rs:11:4
35 |
36LL | fn x(_: &mut i32) {}
37 | ^ -----------
17df50a5 38
94222f64
XL
39error[E0308]: mismatched types
40 --> $DIR/suggest-ref-macro.rs:8:1
41 |
42LL | #[hello]
923072b8
FG
43 | ^^^^^^^^
44 | |
45 | expected `&mut i32`, found integer
46 | arguments to this function are incorrect
47 |
48note: function defined here
49 --> $DIR/suggest-ref-macro.rs:8:1
94222f64 50 |
923072b8
FG
51LL | #[hello]
52 | _-^^^^^^^
53LL | | fn abc() {}
54LL | |
55LL | | fn x(_: &mut i32) {}
56LL | |
57LL | | macro_rules! bla {
58 | |_____________-
94222f64
XL
59 = note: this error originates in the attribute macro `hello` (in Nightly builds, run with -Z macro-backtrace for more info)
60
17df50a5
XL
61error: aborting due to 3 previous errors
62
63For more information about this error, try `rustc --explain E0308`.