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
*x
Example (play: http://is.gd/idpRaW)
use std::mem; struct Trace; fn foo(b: Box<Trace>) { do1(|| mem::drop(*b)); } fn do1<F:FnOnce()>(f: F) { } fn main() { }
If you change mem::drop(*b) to mem::drop(b), it compiles.
mem::drop(*b)
mem::drop(b)
The text was updated successfully, but these errors were encountered:
Triage: still relevant.
Sorry, something went wrong.
Triage: now compiles on both editions. rustc: 1.32.0
rustc: 1.32.0
The fix appears to have been in 1.23
1.23
No branches or pull requests
Example (play: http://is.gd/idpRaW)
If you change
mem::drop(*b)
tomem::drop(b)
, it compiles.The text was updated successfully, but these errors were encountered: