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 @@ -326,7 +326,7 @@ valid for. For example:
326
326
327
327
``` rust
328
328
fn main () {
329
- let y = & 5 ; // -+ y goes into scope
329
+ let y = & 5 ; // -+ y goes into scope
330
330
// |
331
331
// stuff // |
332
332
// |
@@ -341,7 +341,7 @@ struct Foo<'a> {
341
341
}
342
342
343
343
fn main () {
344
- let y = & 5 ; // -+ y goes into scope
344
+ let y = & 5 ; // -+ y goes into scope
345
345
let f = Foo { x : y }; // -+ f goes into scope
346
346
// stuff // |
347
347
// |
@@ -360,7 +360,7 @@ fn main() {
360
360
let x; // -+ x goes into scope
361
361
// |
362
362
{ // |
363
- let y = &5; // ---+ y goes into scope
363
+ let y = &5; // ---+ y goes into scope
364
364
let f = Foo { x: y }; // ---+ f goes into scope
365
365
x = &f.x; // | | error here
366
366
} // ---+ f and y go out of scope
You can’t perform that action at this time.
0 commit comments