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
现在的代码示例:
fn main(){ unsafe { let mut a = "hello"; let b = &a; let c = &mut a; } }
按书中的描述,本来应该报借用检查的错误,但是现在因为NLL的引入,上面代码已经正常编译了。
所以,需要修正。要么更改文本说明,要么修改代码为:
fn main(){ unsafe { let mut a = "hello"; let b = &a; let c = &mut a; b; } }
上面代码违反了NLL规则,借用检查照样报错。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
现在的代码示例:
按书中的描述,本来应该报借用检查的错误,但是现在因为NLL的引入,上面代码已经正常编译了。
所以,需要修正。要么更改文本说明,要么修改代码为:
上面代码违反了NLL规则,借用检查照样报错。
The text was updated successfully, but these errors were encountered: