]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/suggest-ref-macro.stderr
Rollup merge of #87596 - jesyspa:issue-87318-hidden-whitespace, r=estebank
[rust.git] / src / test / ui / suggestions / suggest-ref-macro.stderr
1 error[E0308]: mismatched types
2   --> $DIR/suggest-ref-macro.rs:8:1
3    |
4 LL | #[hello]
5    | ^^^^^^^^ expected `&mut i32`, found integer
6    |
7    = note: this error originates in the attribute macro `hello` (in Nightly builds, run with -Z macro-backtrace for more info)
8
9 error[E0308]: mismatched types
10   --> $DIR/suggest-ref-macro.rs:15:11
11    |
12 LL |         x(123);
13    |           ^^^
14    |           |
15    |           expected `&mut i32`, found integer
16    |           help: consider mutably borrowing here: `&mut 123`
17 ...
18 LL |     bla!();
19    |     ------- in this macro invocation
20    |
21    = note: this error originates in the macro `bla` (in Nightly builds, run with -Z macro-backtrace for more info)
22
23 error[E0308]: mismatched types
24   --> $DIR/suggest-ref-macro.rs:26:10
25    |
26 LL |     bla!(456);
27    |          ^^^
28    |          |
29    |          expected `&mut i32`, found integer
30    |          help: consider mutably borrowing here: `&mut 456`
31
32 error: aborting due to 3 previous errors
33
34 For more information about this error, try `rustc --explain E0308`.