Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
7c547894c76efe9303caa3108754674c39bd901d
/
.
/
tests
/
ui
/
illegal-ufcs-drop.rs
blob: 99dda0dab3406099a119bb61b31af4b9eb9ccd19 [
file
] [
log
] [
blame
]
//@ run-rustfix
#![
allow
(
dropping_references
)]
struct
Foo
;
impl
Drop
for
Foo
{
fn
drop
(&
mut
self
)
{}
}
fn
main
()
{
Drop
::
drop
(&
mut
Foo
)
//~ ERROR explicit use of destructor method
}