]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issue-67765-async-diagnostic.stderr
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[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`.