2011-11-18 12:39:20 +01:00
|
|
|
// error-pattern: copying a noncopyable value
|
2011-09-28 14:37:28 -07:00
|
|
|
|
2012-06-01 20:21:59 -07:00
|
|
|
class r {
|
|
|
|
new(_i:int) {}
|
|
|
|
drop {}
|
|
|
|
}
|
2011-09-28 14:37:28 -07:00
|
|
|
|
|
|
|
fn main() {
|
2012-06-01 20:21:59 -07:00
|
|
|
// This can't make sense as it would copy the classes
|
2011-09-28 14:37:28 -07:00
|
|
|
let i <- [r(0)];
|
|
|
|
let j <- [r(1)];
|
|
|
|
let k = i + j;
|
2011-12-22 17:53:53 -08:00
|
|
|
log(debug, j);
|
2011-11-18 12:39:20 +01:00
|
|
|
}
|