1
1
error[E0716]: temporary value dropped while borrowed
2
- --> $DIR/auto-trait-regions.rs:45 :24
2
+ --> $DIR/auto-trait-regions.rs:26 :24
3
3
|
4
4
LL | let a = A(&mut true, &mut true, No);
5
5
| ^^^^ - temporary value is freed at the end of this statement
@@ -16,7 +16,7 @@ LL ~ let a = A(&mut binding, &mut true, No);
16
16
|
17
17
18
18
error[E0716]: temporary value dropped while borrowed
19
- --> $DIR/auto-trait-regions.rs:45 :35
19
+ --> $DIR/auto-trait-regions.rs:26 :35
20
20
|
21
21
LL | let a = A(&mut true, &mut true, No);
22
22
| ^^^^ - temporary value is freed at the end of this statement
@@ -33,22 +33,22 @@ LL ~ let a = A(&mut true, &mut binding, No);
33
33
|
34
34
35
35
error: implementation of `Foo` is not general enough
36
- --> $DIR/auto-trait-regions.rs:31 :5
36
+ --> $DIR/auto-trait-regions.rs:32 :5
37
37
|
38
38
LL | assert_foo(gen);
39
39
| ^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough
40
40
|
41
- = note: `&'0 OnlyFooIfStaticRef` must implement `Foo `, for any lifetime `'0`...
42
- = note: ...but `Foo` is actually implemented for the type `&'static OnlyFooIfStaticRef `
41
+ = note: `Foo` would have to be implemented for the type `A<'0, '1> `, for any two lifetimes `'0` and `'1 `...
42
+ = note: ...but `Foo` is actually implemented for the type `A<'_, '2>`, for some specific lifetime `'2 `
43
43
44
44
error: implementation of `Foo` is not general enough
45
- --> $DIR/auto-trait-regions.rs:51 :5
45
+ --> $DIR/auto-trait-regions.rs:44 :5
46
46
|
47
47
LL | assert_foo(gen);
48
48
| ^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough
49
49
|
50
- = note: `Foo` would have to be implemented for the type `A<'0, '1> `, for any two lifetimes `'0` and `'1 `...
51
- = note: ...but `Foo` is actually implemented for the type `A<'_, '2>`, for some specific lifetime `'2 `
50
+ = note: `&'0 OnlyFooIfStaticRef` must implement `Foo `, for any lifetime `'0`...
51
+ = note: ...but `Foo` is actually implemented for the type `&'static OnlyFooIfStaticRef `
52
52
53
53
error: aborting due to 4 previous errors
54
54
0 commit comments