summary refs log tree commit diff
path: root/tests/ui/coroutine/check-resume-ty-lifetimes.stderr
blob: f373aa778a82c123426a2884f40b8c0ce2c6ae46 (plain)
1
2
3
4
5
6
7
8
9
10
11
error: lifetime may not live long enough
  --> $DIR/check-resume-ty-lifetimes.rs:13:16
   |
LL | fn mk_static(s: &str) -> &'static str {
   |                 - let's call the lifetime of this reference `'1`
...
LL |         let x: &'static str = yield ();
   |                ^^^^^^^^^^^^ type annotation requires that `'1` must outlive `'static`

error: aborting due to 1 previous error