]> git.proxmox.com Git - rustc.git/blob - src/test/ui/associated-types/associated-types-in-ambiguous-context.stderr
New upstream version 1.41.1+dfsg1
[rustc.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:6: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:20:17
9 |
10 LL | trait Foo where Foo::Assoc: Bar {
11 | ^^^^^^^^^^ help: use fully-qualified syntax: `<Self as Foo>::Assoc`
12
13 error[E0223]: ambiguous associated type
14 --> $DIR/associated-types-in-ambiguous-context.rs:25:10
15 |
16 LL | type X = std::ops::Deref::Target;
17 | ^^^^^^^^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<Type as std::ops::Deref>::Target`
18
19 error[E0223]: ambiguous associated type
20 --> $DIR/associated-types-in-ambiguous-context.rs:11:23
21 |
22 LL | fn grab(&self) -> Grab::Value;
23 | ^^^^^^^^^^^ help: use fully-qualified syntax: `<Self as Grab>::Value`
24
25 error[E0223]: ambiguous associated type
26 --> $DIR/associated-types-in-ambiguous-context.rs:14:22
27 |
28 LL | fn get(&self) -> Get::Value;
29 | ^^^^^^^^^^ help: use fully-qualified syntax: `<Type as Get>::Value`
30
31 error: aborting due to 5 previous errors
32
33 For more information about this error, try `rustc --explain E0223`.