]> git.lizzy.rs Git - rust.git/blob - tests/ui/error-codes/E0229.rs
Rollup merge of #103236 - tspiteri:redoc-int-adc-sbb, r=m-ou-se
[rust.git] / tests / ui / error-codes / E0229.rs
1 pub trait Foo {
2     type A;
3     fn boo(&self) -> <Self as Foo>::A;
4 }
5
6 struct Bar;
7
8 impl Foo for isize {
9     type A = usize;
10     fn boo(&self) -> usize { 42 }
11 }
12
13 fn baz<I>(x: &<I as Foo<A=Bar>>::A) {}
14 //~^ ERROR associated type bindings are not allowed here [E0229]
15
16 fn main() {
17 }