Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
lint
/
dead-code
/
unused-trait-with-assoc-const.rs
blob: 8259e932c640d6f756869049fc263cb250a7b755 [
file
] [
log
] [
blame
]
#![
deny
(
dead_code
)]
trait
Tr
{
//~ ERROR trait `Tr` is never used
const
I
:
Self
;
}
struct
Foo
;
//~ ERROR struct `Foo` is never constructed
impl
Tr
for
Foo
{
const
I
:
Self
=
Foo
;
}
fn
main
()
{}