Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
516 B
Rust
Raw Normal View History

2016-08-04 01:51:52 +02:00
pub trait Foo {
type A;
fn boo(&self) -> <Self as Foo>::A;
}
struct Bar;
impl Foo for isize {
type A = usize;
fn boo(&self) -> usize { 42 }
}
2016-08-05 20:11:26 +02:00
fn baz<I>(x: &<I as Foo<A=Bar>>::A) {}
//~^ ERROR associated type bindings are not allowed here [E0229]
//~| ERROR associated type bindings are not allowed here [E0229]
//~| ERROR associated type bindings are not allowed here [E0229]
//~| ERROR the trait bound `I: Foo` is not satisfied
//~| ERROR the trait bound `I: Foo` is not satisfied
2016-08-04 01:51:52 +02:00
fn main() {
}