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 was mentioned by a user on stackoverflow.
struct Foo { x: i32, } fn main() { let mut foo = Foo { x: 42 }; let x = &mut foo.x; *x = 13; let y = foo; println!("{}", y.x); }
42
13
It seems to be fixed in Nightly and Beta. Only 1.45 has the problem.
I tried this code:
The text was updated successfully, but these errors were encountered:
This can be resolved as a duplicate of #74739
Sorry, something went wrong.
No branches or pull requests
This was mentioned by a user on stackoverflow.
Rust 1.45 outputs:
42
Rust 1.44 outputs:
13
It seems to be fixed in Nightly and Beta. Only 1.45 has the problem.
I tried this code:
The text was updated successfully, but these errors were encountered: