Sign in
fuchsia
/
third_party
/
rust
/
68096ccb3f37dcdd0c454ced5496dda78589aae9
/
.
/
src
/
test
/
ui
/
lint
/
lint-dead-code-impl-trait.rs
blob: a2736d97308afcadd7ae6b1ce8416e8e7400f120 [
file
] [
log
] [
blame
]
#![
deny
(
dead_code
)]
trait
Trait
{
type
Type
;
}
impl
Trait
for
()
{
type
Type
=
();
}
type
Used
=
();
type
Unused
=
();
//~ ERROR type alias is never used
fn
foo
()
->
impl
Trait
<
Type
=
Used
>
{}
fn
main
()
{
foo
();
}