summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/trivial_impl2.rs
blob: be58096007f2b5b1d301dfef5a2ec894b854089c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//! This test checks that we currently need to implement
//! members, even if their where bounds don't hold for the impl type.

trait Foo<T> {
    fn foo()
    where
        Self: Foo<()>;
}

impl Foo<u32> for () {}
//~^ ERROR: not all trait items implemented, missing: `foo`

fn main() {}