2011-11-18 12:39:20 +01:00
|
|
|
// error-pattern: copying a noncopyable value
|
2011-09-12 10:12:36 +02:00
|
|
|
|
2012-06-01 17:06:27 -07:00
|
|
|
class foo {
|
|
|
|
let i: int;
|
|
|
|
new(i:int) { self.i = i; }
|
|
|
|
drop {}
|
|
|
|
}
|
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); }
|