summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/issue-55850.stderr
blob: 86a8cdc42ff9fdf1e344ae54ae628241c1a135c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0515]: cannot yield value referencing local variable `s`
  --> $DIR/issue-55850.rs:28:9
   |
LL |         yield &s[..]
   |         ^^^^^^^-^^^^
   |         |      |
   |         |      `s` is borrowed here
   |         yields a value referencing data owned by the current function

error[E0626]: borrow may still be in use when generator yields
  --> $DIR/issue-55850.rs:28:16
   |
LL |         yield &s[..]
   |         -------^---- possible yield occurs here

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0515, E0626.
For more information about an error, try `rustc --explain E0515`.