summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/impl-bounds-checking.rs
blob: 5e65a27bf14f5fb18eb087fe5ade3bd3c237e2aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub trait Clone2 {
    fn clone(&self) -> Self;
}


trait Getter<T: Clone2> {
    fn get(&self) -> T;
}

impl Getter<isize> for isize { //~ ERROR `isize: Clone2` is not satisfied
    fn get(&self) -> isize { *self }
}

fn main() { }