Closed
Description
This code (play):
struct S;
pub fn main() {
let x = S;
let _y = *&x;
}
issues the following diagnostics under migrate mode:
error[E0507]: cannot move out of borrowed content
--> src/main.rs:4:14
|
4 | let _y = *&x;
| ^^^
| |
| cannot move out of borrowed content
| help: consider removing the `*`: `&x`
error[E0507]: cannot move out of data in a `&` reference
--> src/main.rs:4:14
|
4 | let _y = *&x;
| ^^^
| |
| cannot move out of data in a `&` reference
| cannot move
error: aborting due to 2 previous errors
It issues only a single error under either of AST-borrowck or pure NLL.