]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/associated-types-in-ambiguous-context.stderr
structured suggestion for E0223 ambiguous associated type
[rust.git] / src / test / ui / associated-types / associated-types-in-ambiguous-context.stderr
1 error[E0223]: ambiguous associated type
2   --> $DIR/associated-types-in-ambiguous-context.rs:16:36
3    |
4 LL | fn get<T:Get,U:Get>(x: T, y: U) -> Get::Value {}
5    |                                    ^^^^^^^^^^ help: use fully-qualified syntax: `<Type as Get>::Value`
6
7 error[E0223]: ambiguous associated type
8   --> $DIR/associated-types-in-ambiguous-context.rs:25:10
9    |
10 LL | type X = std::ops::Deref::Target;
11    |          ^^^^^^^^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<Type as std::ops::Deref>::Target`
12
13 error[E0223]: ambiguous associated type
14   --> $DIR/associated-types-in-ambiguous-context.rs:21:23
15    |
16 LL |     fn grab(&self) -> Grab::Value;
17    |                       ^^^^^^^^^^^ help: use fully-qualified syntax: `<Type as Grab>::Value`
18
19 error: aborting due to 3 previous errors
20
21 For more information about this error, try `rustc --explain E0223`.