Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
lint
/
dead-code
/
with-impl.rs
blob: 812fcdd09b6cf9635eb7faa3d782a7d29cff25cd [
file
] [
log
] [
blame
]
// run-pass
#![
deny
(
dead_code
)]
pub
struct
GenericFoo
<
T
>(#[
allow
(
unused_tuple_struct_fields
)]
T
);
type
Foo
=
GenericFoo
<
u32
>;
impl
Foo
{
fn
bar
(
self
)
->
u8
{
0
}
}
fn
main
()
{
println
!(
"{}"
,
GenericFoo
(
0
).
bar
());
}