We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59aee1e commit 9707341Copy full SHA for 9707341
[refs]
@@ -1,5 +1,5 @@
1
---
2
-refs/heads/master: 287f163136b2527504162012b94d346f5523eac9
+refs/heads/master: 9a2b60dfce3ababb59eac53b7da083d7bd087e1d
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
trunk/src/test/compile-fail/borrowck-issue-2657-2.rs
@@ -1,13 +1,8 @@
-//xfail-test
-
-// this should be illegal but borrowck is not handling
-// pattern bindings correctly right now
6
fn main() {
7
let x = some(~1);
8
alt x {
9
some(y) {
10
- let b <- y;
+ let _b <- y; //! ERROR moving out of pattern binding
11
}
12
_ {}
13
0 commit comments