summaryrefslogtreecommitdiff
path: root/src/test/ui/borrowck/issue-51415.stderr
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-07-07 22:47:23 +0000
committerbors <bors@rust-lang.org>2018-07-07 22:47:23 +0000
commit5f2b325f64ed6caa7179f3e04913db437656ec7e (patch)
tree3164d0f3404c27934ca8ae261b0c21a52ce10495 /src/test/ui/borrowck/issue-51415.stderr
parent3eda71b00ad48d7bf4eef4c443e7f611fd061418 (diff)
parentfdbe5b4fa1de5036a45de474f60d417d1f5e4a05 (diff)
Auto merge of #52134 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum1.27.1
Stable release 1.27.1 r? @alexcrichton
Diffstat (limited to 'src/test/ui/borrowck/issue-51415.stderr')
-rw-r--r--src/test/ui/borrowck/issue-51415.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/borrowck/issue-51415.stderr b/src/test/ui/borrowck/issue-51415.stderr
new file mode 100644
index 00000000000..b4b0bc75943
--- /dev/null
+++ b/src/test/ui/borrowck/issue-51415.stderr
@@ -0,0 +1,12 @@
+error[E0507]: cannot move out of borrowed content
+ --> $DIR/issue-51415.rs:16:46
+ |
+LL | let opt = a.iter().enumerate().find(|(_, &s)| {
+ | ^-
+ | ||
+ | |hint: to prevent move, use `ref s` or `ref mut s`
+ | cannot move out of borrowed content
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0507`.