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
type MyWorld = World<u32>; struct World<S = u32> { s: S, } impl<S> World<S> { pub fn new() -> Self { unimplemented!() } } fn main() { //let mut world = World::new(); // Doesn't compile let mut world: World = World::new(); // <= This works :/ let mut world = MyWorld::new(); // This also works }
playground
let mut world = World::new(); // Doesn't compile let mut world: World = World::new(); // This works
To me this seems like an oversight in how types are inferred inside a path.
The text was updated successfully, but these errors were encountered:
Triage: no change
Sorry, something went wrong.
No branches or pull requests
playground
To me this seems like an oversight in how types are inferred inside a path.
The text was updated successfully, but these errors were encountered: