unxfail test for #2657
This commit is contained in:
parent
287f163136
commit
9a2b60dfce
1 changed files with 1 additions and 6 deletions
|
|
@ -1,13 +1,8 @@
|
|||
//xfail-test
|
||||
|
||||
// this should be illegal but borrowck is not handling
|
||||
// pattern bindings correctly right now
|
||||
|
||||
fn main() {
|
||||
let x = some(~1);
|
||||
alt x {
|
||||
some(y) {
|
||||
let b <- y;
|
||||
let _b <- y; //! ERROR moving out of pattern binding
|
||||
}
|
||||
_ {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue