We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b79d279 commit c97673cCopy full SHA for c97673c
src/doc/tarpl/lifetimes.md
@@ -66,11 +66,7 @@ let y = &x;
66
z = y;
67
```
68
69
-The borrow checker always tries to minimize the extent of a lifetime, so it will
70
-likely desugar to something like the following:
71
-
72
```rust,ignore
73
-// NOTE: `'a: {` and `foo = &'b x` is not valid syntax!
74
'a: {
75
let x: i32 = 0;
76
'b: {
@@ -191,8 +187,6 @@ println!("{}", x);
191
187
'c: {
192
188
// Temporary scope because we don't need the
193
189
// &mut to last any longer.
194
195
- // NOTE: Vec::push is not valid syntax
196
190
Vec::push(&'c mut data, 4);
197
}
198
println!("{}", x);
0 commit comments