]> git.lizzy.rs Git - rust.git/blob - src/test/ui/illegal-ufcs-drop.rs
Add 'compiler/rustc_codegen_gcc/' from commit 'afae271d5d3719eeb92c18bc004bb6d1965a5f3f'
[rust.git] / src / test / ui / illegal-ufcs-drop.rs
1 // run-rustfix
2 struct Foo;
3
4 impl Drop for Foo {
5     fn drop(&mut self) {}
6 }
7
8 fn main() {
9     Drop::drop(&mut Foo) //~ ERROR explicit use of destructor method
10 }