Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
drop
/
explicit-drop-call-error.fixed
blob: f2f0245df96ffc26221ea72b6e2845ff4744d45b [
file
] [
log
] [
blame
]
//! Test error for explicit destructor method calls via UFCS
//@ run-rustfix
#![allow(dropping_references)]
struct
Foo
;
impl
Drop
for
Foo
{
fn drop
(&
mut
self
)
{}
}
fn main
()
{
drop
(&
mut
Foo
)
//~ ERROR explicit use of destructor method
}