Sign in
android
/
toolchain
/
rustc
/
2f3fdfeb95384b9046ea35b3532e23c652eca660
/
.
/
src
/
test
/
ui
/
drop
/
drop-trait-generic.rs
blob: cdefb680c755240fbc54f36d1664161f8884ccff [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
dead_code
)]
struct
S
<
T
>
{
x
:
T
}
impl
<
T
>
::
std
::
ops
::
Drop
for
S
<
T
>
{
fn
drop
(&
mut
self
)
{
println
!(
"bye"
);
}
}
pub
fn
main
()
{
let
_x
=
S
{
x
:
1
};
}