Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
consts
/
drop_none.rs
blob: 7991f119857e0ea0b8cbd1211d10ccc4b75dea2f [
file
] [
log
] [
blame
] [
edit
]
//@ build-pass (FIXME(62277): could be check-pass?)
#![
allow
(
dead_code
)]
struct
A
;
impl
Drop
for
A
{
fn
drop
(&
mut
self
)
{}
}
const
FOO
:
Option
<
A
>
=
None
;
const
BAR
:
()
=
(
FOO
,
()).
1
;
fn
main
()
{}