1 warning[E0507]: cannot move out of borrowed content
2 --> $DIR/borrowck-migrate-to-nll.rs:35:17
4 LL | (|| { let bar = foo; bar.take() })();
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content
7 = warning: This error has been downgraded to a warning for backwards compatibility with previous releases.
8 It represents potential unsoundness in your code.
9 This warning will become a hard error in the future.
11 warning[E0507]: cannot move out of `foo`, as it is immutable for the pattern guard
12 --> $DIR/borrowck-migrate-to-nll.rs:35:17
14 LL | (|| { let bar = foo; bar.take() })();
15 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17 | cannot move out of `foo`, as it is immutable for the pattern guard
20 = note: variables bound in patterns are immutable until the end of the pattern guard
21 = warning: This error has been downgraded to a warning for backwards compatibility with previous releases.
22 It represents potential unsoundness in your code.
23 This warning will become a hard error in the future.