blob: 8a188fe92396ab72017e46be5876e01d702f9d0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
fn impure(_v: ~[int]) {
}
fn main() {
let x = {mut f: ~[3]};
alt x {
{f: v} => {
impure(v); //~ ERROR illegal borrow unless pure: unique value in aliasable, mutable location
//~^ NOTE impure due to access to impure function
}
}
}
|