-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
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
Suggest using ref
inline in an error
#26819
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
Travis failure (license check) is real. |
Fixed. |
Hmm. I'm not sure about this sort of help in general. I mean, taking a |
Sorry, I know this is pre-existing :) I've just had this concern for a while... |
Otherwise, looks really nice, and I'm happy to see |
Good point—I’ve changed it to read |
@bors r+ nice! |
📌 Commit 0bf9fbb has been approved by |
The error now looks like this: ``` <anon>:4:9: 4:10 error: use of moved value: `x` [E0382] <anon>:4 foo(x); ^ <anon>:3:9: 3:10 note: `x` moved here because it has type `Box<i32>`, which is moved by default <anon>:3 let y = x; ^ <anon>:3:9: 3:10 help: use `ref` to take a reference instead: <anon>: let ref y = x; ```
The error now looks like this: