]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0229.rs
Suggest `if let`/`let_else` for refutable pat in `let`
[rust.git] / src / test / 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 }