blob: bfe4afc4b58cb2fd9c4f27a9229aaff900ec96ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
error[E0308]: mismatched types
--> $DIR/issue-118144.rs:11:9
|
LL | V(x) = func_arg;
| ^^^^ -------- this expression has type `&mut V`
| |
| expected `&mut V`, found `V`
|
help: consider dereferencing to access the inner value using the Deref trait
|
LL | V(x) = &*func_arg;
| ++
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0308`.
|