]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issue-67765-async-diagnostic.stderr
Auto merge of #77618 - fusion-engineering-forks:windows-parker, r=Amanieu
[rust.git] / src / test / ui / async-await / issue-67765-async-diagnostic.stderr
1 error[E0515]: cannot return value referencing local variable `s`
2   --> $DIR/issue-67765-async-diagnostic.rs:13:5
3    |
4 LL |     let b = &s[..];
5    |              - `s` is borrowed here
6 LL | 
7 LL |     Err(b)?;
8    |     ^^^^^^^ returns a value referencing data owned by the current function
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0515`.