]> git.lizzy.rs Git - rust.git/blob - tests/ui/illegal-ufcs-drop.fixed
Rollup merge of #107091 - clubby789:infer-ftl-missing-dollar, r=compiler-errors
[rust.git] / tests / ui / illegal-ufcs-drop.fixed
1 // run-rustfix
2 struct Foo;
3
4 impl Drop for Foo {
5     fn drop(&mut self) {}
6 }
7
8 fn main() {
9     drop(&mut Foo) //~ ERROR explicit use of destructor method
10 }