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:
310310
311311``` rust
312312fn main () {
313- let y = & 5 ; // -+ y goes into scope
313+ let y = & 5 ; // -+ y goes into scope
314314 // |
315315 // stuff // |
316316 // |
@@ -325,7 +325,7 @@ struct Foo<'a> {
325325}
326326
327327fn main () {
328- let y = & 5 ; // -+ y goes into scope
328+ let y = & 5 ; // -+ y goes into scope
329329 let f = Foo { x : y }; // -+ f goes into scope
330330 // stuff // |
331331 // |
@@ -344,7 +344,7 @@ fn main() {
344344 let x; // -+ x goes into scope
345345 // |
346346 { // |
347- let y = &5; // ---+ y goes into scope
347+ let y = &5; // ---+ y goes into scope
348348 let f = Foo { x: y }; // ---+ f goes into scope
349349 x = &f.x; // | | error here
350350 } // ---+ f and y go out of scope
You can’t perform that action at this time.
0 commit comments