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