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
trait A { fn m(&self) -> i32; } fn x<T: B>(k: &<T as B>::Ty) { k.m(); } impl A for u8 { fn m(&self) -> i32 { 8 } } impl A for u32 { fn m(&self) -> i32 { 32 } } trait B { type Ty: A; } impl B for u16 { type Ty = u32; } #[test] fn ttt() { x::<u16>(&2u8); // Expected u32 found u8 is missing here. }
The text was updated successfully, but these errors were encountered:
a317fa8
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: