summaryrefslogtreecommitdiffstats
path: root/src/test/ui/traits/bound/auxiliary/on_structs_and_enums_xc.rs
blob: 7e9592eee2c0d0c164cf91411129c743c8ec2665 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
pub trait Trait {
    fn dummy(&self) { }
}

pub struct Foo<T:Trait> {
    pub x: T,
}

pub enum Bar<T:Trait> {
    ABar(isize),
    BBar(T),
    CBar(usize),
}