mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
14 lines
205 B
Rust
14 lines
205 B
Rust
#![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() {}
|