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
This code fails to compile
trait Foo { fn bar(&self); } impl int: Foo { fn bar(&self) { } } fn test<T: Foo>(arr: T) { } fn main() { let x = 5; test(&x as &Foo); }
with: mismatched types: expected@foobut found&/Foo(trait storage differs: expected @ but found &)
mismatched types: expected
but found
(trait storage differs: expected @ but found &)
This is with the current master.
The text was updated successfully, but these errors were encountered:
May be related to #3794
Sorry, something went wrong.
This is by design.
No branches or pull requests
This code fails to compile
with:
mismatched types: expected
@foobut found
&/Foo(trait storage differs: expected @ but found &)
This is with the current master.
The text was updated successfully, but these errors were encountered: