about summary refs log tree commit diff
path: root/tests/ui/lint/dead-code/unused-trait-with-assoc-ty.rs
blob: e8116d83ebf1cefd41bd4e3369602341cd4b3815 (plain)
1
2
3
4
5
6
7
8
9
10
11
#![deny(dead_code)]

struct T1; //~ ERROR struct `T1` is never constructed

trait Foo { type Unused; } //~ ERROR trait `Foo` is never used
impl Foo for T1 { type Unused = Self; }

pub trait Bar { type Used; }
impl Bar for T1 { type Used = Self; }

fn main() {}