If you look at the AST-borrowck output for a case like borrowck-vec-pattern-nesting.rs, you see output like this:
|
error[E0508]: cannot move out of type `[std::boxed::Box<isize>]`, a non-copy slice |
but NLL only reports this:
|
error[E0507]: cannot move out of borrowed content |
It is probably useful to include the type behind the borrow (and the fact that it is non-copy) when that is relevant to the move being attempted.
If you look at the AST-borrowck output for a case like borrowck-vec-pattern-nesting.rs, you see output like this:
rust/src/test/ui/borrowck/borrowck-vec-pattern-nesting.stderr
Line 19 in 20af72b
but NLL only reports this:
rust/src/test/ui/borrowck/borrowck-vec-pattern-nesting.nll.stderr
Line 19 in 20af72b
It is probably useful to include the type behind the borrow (and the fact that it is non-copy) when that is relevant to the move being attempted.