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
struct S; impl S{ fn foo(&mut self){} } struct T<'a>(&'a S); impl<'a> Drop for T<'a>{ fn drop(&mut self){} } fn main() { let mut s=S; let t=T(&s); s.foo(); }
Inspired by rust-lang/rust#70797 The Drop of T makes polonius failed. It's related to eager drop: rust-lang/lang-team#86 Is it a bug?
Drop
T
The text was updated successfully, but these errors were encountered:
ecstatic-morse
No branches or pull requests
Inspired by rust-lang/rust#70797
The
Drop
ofT
makes polonius failed.It's related to eager drop: rust-lang/lang-team#86
Is it a bug?
The text was updated successfully, but these errors were encountered: