]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/suggest-ref-macro.stderr
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / suggest-ref-macro.stderr
1 error[E0308]: mismatched types
2   --> $DIR/suggest-ref-macro.rs:8:1
3    |
4 LL | #[hello]
5    | ^^^^^^^^
6    | |
7    | expected `&mut i32`, found integer
8    | arguments to this function are incorrect
9    |
10 note: function defined here
11   --> $DIR/suggest-ref-macro.rs:8:1
12    |
13 LL | #[hello]
14    | ^^^^^^^^
15    = note: this error originates in the attribute macro `hello` (in Nightly builds, run with -Z macro-backtrace for more info)
16
17 error[E0308]: mismatched types
18   --> $DIR/suggest-ref-macro.rs:15:11
19    |
20 LL |         x(123);
21    |         - ^^^
22    |         | |
23    |         | expected `&mut i32`, found integer
24    |         | help: consider mutably borrowing here: `&mut 123`
25    |         arguments to this function are incorrect
26 ...
27 LL |     bla!();
28    |     ------ in this macro invocation
29    |
30 note: function defined here
31   --> $DIR/suggest-ref-macro.rs:11:4
32    |
33 LL | fn x(_: &mut i32) {}
34    |    ^ -----------
35    = note: this error originates in the macro `bla` (in Nightly builds, run with -Z macro-backtrace for more info)
36
37 error[E0308]: mismatched types
38   --> $DIR/suggest-ref-macro.rs:26:10
39    |
40 LL |         x($v)
41    |         - arguments to this function are incorrect
42 ...
43 LL |     bla!(456);
44    |          ^^^
45    |          |
46    |          expected `&mut i32`, found integer
47    |          help: consider mutably borrowing here: `&mut 456`
48    |
49 note: function defined here
50   --> $DIR/suggest-ref-macro.rs:11:4
51    |
52 LL | fn x(_: &mut i32) {}
53    |    ^ -----------
54
55 error: aborting due to 3 previous errors
56
57 For more information about this error, try `rustc --explain E0308`.