10 lines
117 B
Rust
10 lines
117 B
Rust
|
// error-pattern: mismatched kind
|
||
|
|
||
|
resource r(b: bool) {
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
let i = ~r(true);
|
||
|
let j;
|
||
|
j = i;
|
||
|
}
|