Removed more capture claueses.
This commit is contained in:
parent
1f4c758f9b
commit
60bd4a5385
3 changed files with 5 additions and 5 deletions
|
|
@ -13,6 +13,6 @@ fn foo(_x: @uint) {}
|
|||
fn main() {
|
||||
let x = @3u;
|
||||
let _ = fn~() { foo(x); }; //~ ERROR value has non-owned type `@uint`
|
||||
let _ = fn~(copy x) { foo(x); }; //~ ERROR value has non-owned type `@uint`
|
||||
let _ = fn~() { foo(x); }; //~ ERROR value has non-owned type `@uint`
|
||||
let _ = fn~() { foo(x); }; //~ ERROR value has non-owned type `@uint`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue