blob: d352c1948f234f417c404f24c806a399d243cdb6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Check that this program doesn't cause the compiler to error without output.
#![feature(generic_associated_types)]
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() {}
|