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:
326326
327327``` rust
328328fn main () {
329- let y = & 5 ; // -+ y goes into scope
329+ let y = & 5 ; // -+ y goes into scope
330330 // |
331331 // stuff // |
332332 // |
@@ -341,7 +341,7 @@ struct Foo<'a> {
341341}
342342
343343fn main () {
344- let y = & 5 ; // -+ y goes into scope
344+ let y = & 5 ; // -+ y goes into scope
345345 let f = Foo { x : y }; // -+ f goes into scope
346346 // stuff // |
347347 // |
@@ -360,7 +360,7 @@ fn main() {
360360 let x; // -+ x goes into scope
361361 // |
362362 { // |
363- let y = &5; // ---+ y goes into scope
363+ let y = &5; // ---+ y goes into scope
364364 let f = Foo { x: y }; // ---+ f goes into scope
365365 x = &f.x; // | | error here
366366 } // ---+ f and y go out of scope
You can’t perform that action at this time.
0 commit comments