We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suppose a type declaration is used to provide a shorter name for a specific example of a generic struct
type
struct X<T>; impl<T> X<T> { fn go() -> int {-1} } struct A; type Alias = X<A>;
then its not possible to call a static method via Alias
Alias
fn main() { let a = X::<A>::go(); // Works let b = Alias::go(); // Won't compile - error: failed to resolve. Use of undeclared module `Alias` }
Should the compiler expand type declarations in path expressions (ie Alias => X::<T>)?
Alias => X::<T>
The text was updated successfully, but these errors were encountered:
Duplicate of #11047.
Sorry, something went wrong.
No branches or pull requests
Suppose a
type
declaration is used to provide a shorter name for a specific example of a generic structthen its not possible to call a static method via
Alias
Should the compiler expand
type
declarations in path expressions (ieAlias => X::<T>
)?The text was updated successfully, but these errors were encountered: