]> git.proxmox.com Git - rustc.git/blob - src/test/compile-fail/kindck-destructor-owned.rs
Imported Upstream version 0.7
[rustc.git] / src / test / compile-fail / kindck-destructor-owned.rs
1 struct Foo {
2 f: @mut int,
3 }
4
5 impl Drop for Foo { //~ ERROR cannot implement a destructor on a structure that does not satisfy Send
6 fn drop(&self) {
7 *self.f = 10;
8 }
9 }
10
11 fn main() { }