summaryrefslogtreecommitdiffstats
path: root/src/test/ui/async-await/issue-67765-async-diagnostic.stderr
blob: 492e06fbbc06c93d508bb0c5b570fec006294efb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0515]: cannot return value referencing local variable `s`
  --> $DIR/issue-67765-async-diagnostic.rs:13:5
   |
LL |     let b = &s[..];
   |              - `s` is borrowed here
LL |
LL |     Err(b)?;
   |     ^^^^^^^ returns a value referencing data owned by the current function

error: aborting due to previous error

For more information about this error, try `rustc --explain E0515`.