]> git.lizzy.rs Git - rust.git/blob - src/test/compile-fail/kindck-destructor-owned.rs
Change finalize -> drop.
[rust.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 struct that is not Owned
6     fn drop(&self) {
7         *self.f = 10;
8     }
9 }
10
11 fn main() { }