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 fails to compile. The error is that a & is required on the last line of main: let w = &(...) ^ &z;
&
main
let w = &(...) ^ &z;
The error message seems to indicate that the inner operation is wrong, when in fact it is the outer one which needs correcting:
<anon>:15:14: 15:21 error: binary operation `^` cannot be applied to type `A` [E0369] <anon>:15 let w = (&x ^ &y) ^ &z; ^~~~~~~
should (in my opinion) read:
<anon>:15:14: 15:21 error: binary operation `^` cannot be applied to type `A` [E0369] <anon>:15 let w = (&x ^ &y) ^ &z; ^~~~~~~~~
Checked on rustc 1.10.0-nightly (6974800c6 2016-05-08) and an older nightly.
rustc 1.10.0-nightly (6974800c6 2016-05-08)
The text was updated successfully, but these errors were encountered:
Rollup merge of rust-lang#33683 - sanxiyn:paren-span, r=nikomatsakis
5dc8dfa
Preserve span when lowering ExprKind::Paren Fix rust-lang#33681.
from(x)
x
No branches or pull requests
This fails to compile. The error is that a
&
is required on the last line ofmain
:let w = &(...) ^ &z;
The error message seems to indicate that the inner operation is wrong, when in fact it is the outer one which needs correcting:
should (in my opinion) read:
Checked on
rustc 1.10.0-nightly (6974800c6 2016-05-08)
and an older nightly.The text was updated successfully, but these errors were encountered: