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 Foo { type Out : ?Sized; } impl<T:?Sized> Foo for T { type Out = T; } trait Bar<T:?Sized> {} impl<T:?Sized> Bar<<T as Foo>::Out> for () { } fn main() { println!("Hello, world!"); }
Error:
<anon>:10:1: 11:2 error: type annotations required: cannot resolve `<_ as Foo>::Out == T` [E0284] <anon>:10 impl<T:?Sized> Bar<<T as Foo>::Out> for () { <anon>:11 } <anon>:10:1: 11:2 note: required by `Bar` <anon>:10 impl<T:?Sized> Bar<<T as Foo>::Out> for () { <anon>:11 } error: aborting due to previous error playpen: application terminated with error code 101
I would have expected an RFC447 error.
The text was updated successfully, but these errors were encountered:
Fixed (duplicate #26275).
Sorry, something went wrong.
No branches or pull requests
Error:
I would have expected an RFC447 error.
The text was updated successfully, but these errors were encountered: