Sign in
fuchsia
/
third_party
/
rust
/
03534ac8b70de1134ce7e91b172cd629048a6c8b
/
.
/
tests
/
ui
/
illegal-ufcs-drop.rs
blob: 1389b112188657578e699c1a9fe5a995002787f0 [
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
}