]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-migrate-to-nll.edition.stderr
Auto merge of #61008 - GuillaumeGomez:fix-rustdoc-code-highlighting, r=Manishearth
[rust.git] / src / test / ui / borrowck / borrowck-migrate-to-nll.edition.stderr
1 warning[E0507]: cannot move out of borrowed content
2   --> $DIR/borrowck-migrate-to-nll.rs:25:17
3    |
4 LL |                 (|| { let bar = foo; bar.take() })();
5    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content
6    |
7    = warning: this error has been downgraded to a warning for backwards compatibility with previous releases
8    = warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future
9    = note: for more information, try `rustc --explain E0729`
10