blob: a7647cf26aadf0d9339ae107ac0a570734328cf0 [file] [log] [blame]
error[E0223]: ambiguous associated type
--> $DIR/associated-types-in-ambiguous-context.rs:8:36
|
LL | fn get<T:Get,U:Get>(x: T, y: U) -> Get::Value {}
| ^^^^^^^^^^
|
help: if there were a type named `Example` that implemented `Get`, you could use the fully-qualified path
|
LL - fn get<T:Get,U:Get>(x: T, y: U) -> Get::Value {}
LL + fn get<T:Get,U:Get>(x: T, y: U) -> <Example as Get>::Value {}
|
error[E0223]: ambiguous associated type
--> $DIR/associated-types-in-ambiguous-context.rs:22:17
|
LL | trait Foo where Foo::Assoc: Bar {
| ^^^^^^^^^^
|
help: use fully-qualified syntax
|
LL - trait Foo where Foo::Assoc: Bar {
LL + trait Foo where <Self as Foo>::Assoc: Bar {
|
error[E0223]: ambiguous associated type
--> $DIR/associated-types-in-ambiguous-context.rs:27:10
|
LL | type X = std::ops::Deref::Target;
| ^^^^^^^^^^^^^^^^^^^^^^^
|
help: use fully-qualified syntax
|
LL - type X = std::ops::Deref::Target;
LL + type X = <ByteStr as Deref>::Target;
|
LL - type X = std::ops::Deref::Target;
LL + type X = <ByteString as Deref>::Target;
|
LL - type X = std::ops::Deref::Target;
LL + type X = <CString as Deref>::Target;
|
LL - type X = std::ops::Deref::Target;
LL + type X = <IoSlice<'_> as Deref>::Target;
|
and N other candidates
error[E0223]: ambiguous associated type
--> $DIR/associated-types-in-ambiguous-context.rs:13:23
|
LL | fn grab(&self) -> Grab::Value;
| ^^^^^^^^^^^
|
help: use fully-qualified syntax
|
LL - fn grab(&self) -> Grab::Value;
LL + fn grab(&self) -> <Self as Grab>::Value;
|
error[E0223]: ambiguous associated type
--> $DIR/associated-types-in-ambiguous-context.rs:16:22
|
LL | fn get(&self) -> Get::Value;
| ^^^^^^^^^^
|
help: if there were a type named `Example` that implemented `Get`, you could use the fully-qualified path
|
LL - fn get(&self) -> Get::Value;
LL + fn get(&self) -> <Example as Get>::Value;
|
error: aborting due to 5 previous errors
For more information about this error, try `rustc --explain E0223`.