summary refs log tree commit diff
path: root/src/test/compile-fail/unique-pinned-nocopy.rs
blob: 97e4515d98d3657ea20e138380713cb12959165a (plain)
1
2
3
4
5
6
7
8
9
10
// error-pattern: copying a noncopyable value

resource r(b: bool) {
}

fn main() {
    let i <- ~r(true);
    let j = i;
    log(debug, i);
}