mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-19 02:13:57 +00:00
18 lines
280 B
Rust
18 lines
280 B
Rust
#![deny(dead_code)]
|
|
|
|
enum Foo {} //~ ERROR enum `Foo` is never used
|
|
|
|
impl Clone for Foo {
|
|
fn clone(&self) -> Foo { loop {} }
|
|
}
|
|
|
|
pub trait PubTrait {
|
|
fn unused_method(&self) -> Self;
|
|
}
|
|
|
|
impl PubTrait for Foo {
|
|
fn unused_method(&self) -> Foo { loop {} }
|
|
}
|
|
|
|
fn main() {}
|