summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0276.rs
blob: 5e3d9f602ad0bc094f9602334b6efc2f9d2cf8c0 (plain)
1
2
3
4
5
6
7
8
9
10
trait Foo {
    fn foo<T>(x: T);
}

impl Foo for bool {
    fn foo<T>(x: T) where T: Copy {} //~ ERROR E0276
}

fn main() {
}