Rollup merge of #25526 - chellmuth:patch-1, r=alexcrichton
This commit is contained in:
commit
6f2a069b9c
@ -297,7 +297,7 @@ We can’t modify `v` because it’s borrowed by the loop.
|
||||
References must live as long as the resource they refer to. Rust will check the
|
||||
scopes of your references to ensure that this is true.
|
||||
|
||||
If Rust didn’t check that this property, we could accidentally use a reference
|
||||
If Rust didn’t check this property, we could accidentally use a reference
|
||||
which was invalid. For example:
|
||||
|
||||
```rust,ignore
|
||||
|
Loading…
Reference in New Issue
Block a user