1
1
error[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
3
3
|
4
4
LL | let gen = #[coroutine] move || {
5
5
| ------- within this coroutine
@@ -15,7 +15,7 @@ LL | let gen = #[coroutine] static move || {
15
15
| ++++++
16
16
17
17
error[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
19
19
|
20
20
LL | let gen = #[coroutine] move || {
21
21
| ------- within this coroutine
@@ -31,22 +31,22 @@ LL | let gen = #[coroutine] static move || {
31
31
| ++++++
32
32
33
33
error: implementation of `Foo` is not general enough
34
- --> $DIR/auto-trait-regions.rs:31 :5
34
+ --> $DIR/auto-trait-regions.rs:32 :5
35
35
|
36
36
LL | assert_foo(gen);
37
37
| ^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough
38
38
|
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 `
41
41
42
42
error: implementation of `Foo` is not general enough
43
- --> $DIR/auto-trait-regions.rs:51 :5
43
+ --> $DIR/auto-trait-regions.rs:44 :5
44
44
|
45
45
LL | assert_foo(gen);
46
46
| ^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough
47
47
|
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 `
50
50
51
51
error: aborting due to 4 previous errors
52
52
0 commit comments