]>
Commit | Line | Data |
---|---|---|
17df50a5 XL |
1 | error[E0308]: mismatched types |
2 | --> $DIR/suggest-ref-macro.rs:15:11 | |
3 | | | |
4 | LL | 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 | ... |
11 | LL | bla!(); | |
c295e0f8 | 12 | | ------ in this macro invocation |
17df50a5 | 13 | | |
923072b8 FG |
14 | note: function defined here |
15 | --> $DIR/suggest-ref-macro.rs:11:4 | |
16 | | | |
17 | LL | 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 | ||
21 | error[E0308]: mismatched types | |
22 | --> $DIR/suggest-ref-macro.rs:26:10 | |
23 | | | |
923072b8 FG |
24 | LL | x($v) |
25 | | - arguments to this function are incorrect | |
26 | ... | |
17df50a5 XL |
27 | LL | bla!(456); |
28 | | ^^^ | |
29 | | | | |
30 | | expected `&mut i32`, found integer | |
31 | | help: consider mutably borrowing here: `&mut 456` | |
923072b8 FG |
32 | | |
33 | note: function defined here | |
34 | --> $DIR/suggest-ref-macro.rs:11:4 | |
35 | | | |
36 | LL | fn x(_: &mut i32) {} | |
37 | | ^ ----------- | |
17df50a5 | 38 | |
94222f64 XL |
39 | error[E0308]: mismatched types |
40 | --> $DIR/suggest-ref-macro.rs:8:1 | |
41 | | | |
42 | LL | #[hello] | |
923072b8 FG |
43 | | ^^^^^^^^ |
44 | | | | |
45 | | expected `&mut i32`, found integer | |
46 | | arguments to this function are incorrect | |
47 | | | |
48 | note: function defined here | |
49 | --> $DIR/suggest-ref-macro.rs:8:1 | |
94222f64 | 50 | | |
923072b8 FG |
51 | LL | #[hello] |
52 | | _-^^^^^^^ | |
53 | LL | | fn abc() {} | |
54 | LL | | | |
55 | LL | | fn x(_: &mut i32) {} | |
56 | LL | | | |
57 | LL | | 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 |
61 | error: aborting due to 3 previous errors |
62 | ||
63 | For more information about this error, try `rustc --explain E0308`. |