2011-06-28 10:47:56 -05:00
|
|
|
// error-pattern:Copying a non-copyable type
|
|
|
|
|
2011-09-12 03:12:36 -05:00
|
|
|
// This is still not properly checked
|
|
|
|
// xfail-test
|
|
|
|
|
2011-07-27 07:19:39 -05:00
|
|
|
resource foo(i: int) { }
|
2011-06-28 10:47:56 -05:00
|
|
|
|
2011-08-19 17:16:48 -05:00
|
|
|
fn main() { let x <- foo(10); let y = x; }
|