summary refs log tree commit diff
path: root/src/test/compile-fail/copy-a-resource.rs
blob: c37ccd29f0db33160b7036ded8bf63c178774d2d (plain)
1
2
3
4
5
// error-pattern: copying a noncopyable value

resource foo(i: int) { }

fn main() { let x <- foo(10); let y = x; log(error, x); }