Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
dead-code-impl.rs
blob: 84829c98e573908cdddc1a50890d25680ceca2b3 [
file
] [
log
] [
blame
]
// run-pass
#![
deny
(
dead_code
)]
pub
struct
GenericFoo
<
T
>(
T
);
type
Foo
=
GenericFoo
<
u32
>;
impl
Foo
{
fn
bar
(
self
)
->
u8
{
0
}
}
fn
main
()
{
println
!(
"{}"
,
GenericFoo
(
0
).
bar
());
}