File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed
branches/try/src/doc/tarpl Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
3
3
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4
- refs/heads/try: b79d279418db10728d5067fc872c0a9f273ba123
4
+ refs/heads/try: c97673c7b0fffe131822f2a5be520cf408c68319
5
5
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
6
6
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
7
7
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -66,11 +66,7 @@ let y = &x;
66
66
z = y ;
67
67
```
68
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
69
``` rust,ignore
73
- // NOTE: `'a: {` and `foo = &'b x` is not valid syntax!
74
70
'a: {
75
71
let x: i32 = 0;
76
72
'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
191
}
198
192
println!("{}", x);
You can’t perform that action at this time.
0 commit comments