You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#![feature(inherent_associated_types)]structS;implS{typeFoo = Vec<i32>;}fnmain(){let s = S::Foo::default();}
I expected to see this happen: It compiles.
Instead, this happened: It fails with error:
error[E0223]: ambiguous associated type
--> src/main.rs:8:13
|
8 | let s = S::Foo::default();
| ^^^^^^ help: use fully-qualified syntax: `<S as Trait>::Foo`
error: aborting due to previous error; 1 warning emitted
The text was updated successfully, but these errors were encountered:
I think this is expected, because inherent associated types are not implemented yet (see the tracking issue #8995), only the feature gate and declaring (but not using) them (#82516).
This is definitely expected behavior and not a bug, as inherent associated types are not implemented. In my opinion this should be closed in favor of the tracking issue (#8995).
I tried this code:
I expected to see this happen: It compiles.
Instead, this happened: It fails with error:
The text was updated successfully, but these errors were encountered: