2011-11-18 12:39:20 +01:00
|
|
|
// error-pattern: copying a noncopyable value
|
2011-09-12 10:12:36 +02:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
resource foo(i: int) { }
|
2011-06-28 17:47:56 +02:00
|
|
|
|
2011-12-22 17:53:53 -08:00
|
|
|
fn main() { let x <- foo(10); let y = x; log(error, x); }
|