2011-09-28 16:37:28 -05:00
|
|
|
// error-pattern:mismatched kinds
|
2011-11-15 09:45:14 -06:00
|
|
|
// xfail-test
|
2011-09-28 16:37:28 -05:00
|
|
|
|
|
|
|
resource r(i: int) {
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
// This can't make sense as it would copy the resources
|
|
|
|
let i <- [r(0)];
|
|
|
|
let j <- [r(1)];
|
|
|
|
let k = i + j;
|
|
|
|
}
|