Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
lint
/
issue-101284.rs
blob: ab5d8587ccb9683f0d3e254f6e42dbff3913b0be [
file
] [
log
] [
blame
] [
edit
]
//@ check-pass
//@ edition:2021
#![
deny
(
rust_2021_compatibility
)]
pub
struct
Warns
{
// `Arc` has significant drop
_significant_drop
:
std
::
sync
::
Arc
<()>,
field
:
String
,
}
pub
fn
test
(
w
:
Warns
)
{
_
=
||
drop
(
w
.
field
);
}
fn
main
()
{}