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
trait A {
type AA;
}
struct S;
impl A for S {
type AA = String;
}
// how to access AA out of S?
let aa_instance = S::AA::new(); // wrong
let aa_instance = (S as A)::AA::new(); // wrong
could you help me? Thanks!
The text was updated successfully, but these errors were encountered:
here is a piece of code:
could you help me? Thanks!
The text was updated successfully, but these errors were encountered: