|
error[E0308]: mismatched types
- --> $DIR/deref-suggestion.rs:2:20
+ --> $DIR/deref-suggestion.rs:34:10
|
-LL | ($x:expr) => { &$x }
- | ^^^ expected `u32`, found `&{integer}`
-...
LL | foo3(borrow!(0));
- | ---- ---------- in this macro invocation
+ | ---- ^^^^^^^^^^ expected `u32`, found `&{integer}`
| |
| arguments to this function are incorrect
|
|
LL | fn foo3(_: u32) {}
| ^^^^ ------
- = note: this error originates in the macro `borrow` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0308]: mismatched types
- --> $DIR/deref-suggestion.rs:36:5
+ --> $DIR/deref-suggestion.rs:37:5
|
LL | assert_eq!(3i32, &3i32);
| ^^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `&i32`
= note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0308]: mismatched types
- --> $DIR/deref-suggestion.rs:39:17
+ --> $DIR/deref-suggestion.rs:40:17
|
LL | let s = S { u };
| ^
| help: consider borrowing here: `u: &u`
error[E0308]: mismatched types
- --> $DIR/deref-suggestion.rs:41:20
+ --> $DIR/deref-suggestion.rs:42:20
|
LL | let s = S { u: u };
| ^
| help: consider borrowing here: `&u`
error[E0308]: mismatched types
- --> $DIR/deref-suggestion.rs:44:17
+ --> $DIR/deref-suggestion.rs:45:17
|
LL | let r = R { i };
| ^ expected `u32`, found `&{integer}`
| ++++
error[E0308]: mismatched types
- --> $DIR/deref-suggestion.rs:46:20
+ --> $DIR/deref-suggestion.rs:47:20
|
LL | let r = R { i: i };
| ^ expected `u32`, found `&{integer}`
| +
error[E0308]: mismatched types
- --> $DIR/deref-suggestion.rs:55:9
+ --> $DIR/deref-suggestion.rs:56:9
|
LL | b
| ^ expected `i32`, found `&{integer}`
| +
error[E0308]: mismatched types
- --> $DIR/deref-suggestion.rs:63:9
+ --> $DIR/deref-suggestion.rs:64:9
|
LL | b
| ^ expected `i32`, found `&{integer}`
| +
error[E0308]: `if` and `else` have incompatible types
- --> $DIR/deref-suggestion.rs:68:12
+ --> $DIR/deref-suggestion.rs:69:12
|
LL | let val = if true {
| _______________-