diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-08-18 09:40:59 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-08-18 09:40:59 -0700 |
| commit | e70cc2733b9902ae660f60fce7ba0bb5191a0d0c (patch) | |
| tree | f59be6d2ef5ca3206ec43321e94d325ef63fa612 /src | |
| parent | 9620d2613810b878ff82d31b7069f03c97278496 (diff) | |
| download | rust-e70cc2733b9902ae660f60fce7ba0bb5191a0d0c.tar.gz rust-e70cc2733b9902ae660f60fce7ba0bb5191a0d0c.zip | |
Fix a diagnostic
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_borrowck/diagnostics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_borrowck/diagnostics.rs b/src/librustc_borrowck/diagnostics.rs index 50a9dccaa2b..74133c821f0 100644 --- a/src/librustc_borrowck/diagnostics.rs +++ b/src/librustc_borrowck/diagnostics.rs @@ -660,7 +660,7 @@ yield point. # #![feature(generators, generator_trait)] # use std::ops::Generator; let mut b = || { - let a = &3; // <-- This borrow... + let a = &String::new(); // <-- This borrow... yield (); // ...is still in scope here, when the yield occurs. println!("{}", a); }; |
