11error[E0626]: borrow may still be in use when coroutine yields
2- --> $DIR/auto-trait-regions.rs:45 :19
2+ --> $DIR/auto-trait-regions.rs:26 :19
33 |
44LL | let generator = #[coroutine] move || {
55 | ------- within this coroutine
@@ -15,7 +15,7 @@ LL | let generator = #[coroutine] static move || {
1515 | ++++++
1616
1717error[E0626]: borrow may still be in use when coroutine yields
18- --> $DIR/auto-trait-regions.rs:45 :30
18+ --> $DIR/auto-trait-regions.rs:26 :30
1919 |
2020LL | let generator = #[coroutine] move || {
2121 | ------- within this coroutine
@@ -31,22 +31,22 @@ LL | let generator = #[coroutine] static move || {
3131 | ++++++
3232
3333error: implementation of `Foo` is not general enough
34- --> $DIR/auto-trait-regions.rs:31 :5
34+ --> $DIR/auto-trait-regions.rs:32 :5
3535 |
3636LL | assert_foo(generator);
3737 | ^^^^^^^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough
3838 |
39- = note: `&'0 OnlyFooIfStaticRef` must implement `Foo `, for any lifetime `'0`...
40- = note: ...but `Foo` is actually implemented for the type `&'static OnlyFooIfStaticRef `
39+ = note: `Foo` would have to be implemented for the type `A<'0, '1> `, for any two lifetimes `'0` and `'1 `...
40+ = note: ...but `Foo` is actually implemented for the type `A<'_, '2>`, for some specific lifetime `'2 `
4141
4242error: implementation of `Foo` is not general enough
43- --> $DIR/auto-trait-regions.rs:51 :5
43+ --> $DIR/auto-trait-regions.rs:44 :5
4444 |
4545LL | assert_foo(generator);
4646 | ^^^^^^^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough
4747 |
48- = note: `Foo` would have to be implemented for the type `A<'0, '1> `, for any two lifetimes `'0` and `'1 `...
49- = note: ...but `Foo` is actually implemented for the type `A<'_, '2>`, for some specific lifetime `'2 `
48+ = note: `&'0 OnlyFooIfStaticRef` must implement `Foo `, for any lifetime `'0`...
49+ = note: ...but `Foo` is actually implemented for the type `&'static OnlyFooIfStaticRef `
5050
5151error: aborting due to 4 previous errors
5252
0 commit comments