fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
187 B13 linesraw
1// run-rustfix
2
3#![allow(dropping_references)]
4
5struct Foo;
6
7impl Drop for Foo {
8    fn drop(&mut self) {}
9}
10
11fn main() {
12    drop(&mut Foo) //~ ERROR explicit use of destructor method
13}