]> git.lizzy.rs Git - rust.git/blob - src/test/ui/illegal-ufcs-drop.rs
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / illegal-ufcs-drop.rs
1 struct Foo;
2
3 impl Drop for Foo {
4     fn drop(&mut self) {}
5 }
6
7 fn main() {
8     Drop::drop(&mut Foo) //~ ERROR explicit use of destructor method
9 }