summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/issue-47206-where-clause.rs
blob: 3d1b88ddf299d27799b5e8b5e8631f5adea86396 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Check that this program doesn't cause the compiler to error without output.

trait Foo {
    type Assoc3<T>;
}

struct Bar;

impl Foo for Bar {
    type Assoc3<T> = Vec<T> where T: Iterator;
    //~^ ERROR impl has stricter requirements than trait
}

fn main() {}