Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
lint
/
dead-code
/
with-impl.rs
blob: 8164948ef965780ce24f7876684cd2d022a63bfc [
file
] [
log
] [
blame
]
//@ run-pass
#![
deny
(
dead_code
)]
pub
struct
GenericFoo
<
T
>(#[
allow
(
dead_code
)]
T
);
type
Foo
=
GenericFoo
<
u32
>;
impl
Foo
{
fn
bar
(
self
)
->
u8
{
0
}
}
fn
main
()
{
println
!(
"{}"
,
GenericFoo
(
0
).
bar
());
}