File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ valid for. For example:
310
310
311
311
``` rust
312
312
fn main () {
313
- let y = & 5 ; // -+ y goes into scope
313
+ let y = & 5 ; // -+ y goes into scope
314
314
// |
315
315
// stuff // |
316
316
// |
@@ -325,7 +325,7 @@ struct Foo<'a> {
325
325
}
326
326
327
327
fn main () {
328
- let y = & 5 ; // -+ y goes into scope
328
+ let y = & 5 ; // -+ y goes into scope
329
329
let f = Foo { x : y }; // -+ f goes into scope
330
330
// stuff // |
331
331
// |
@@ -344,7 +344,7 @@ fn main() {
344
344
let x; // -+ x goes into scope
345
345
// |
346
346
{ // |
347
- let y = &5; // ---+ y goes into scope
347
+ let y = &5; // ---+ y goes into scope
348
348
let f = Foo { x: y }; // ---+ f goes into scope
349
349
x = &f.x; // | | error here
350
350
} // ---+ f and y go out of scope
You can’t perform that action at this time.
0 commit comments