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