11error[E0716]: temporary value dropped while borrowed
2- --> $DIR/auto-trait-regions.rs:45 :24
2+ --> $DIR/auto-trait-regions.rs:26 :24
33 |
44LL | let a = A(&mut true, &mut true, No);
55 | ^^^^ - temporary value is freed at the end of this statement
@@ -16,7 +16,7 @@ LL ~ let a = A(&mut binding, &mut true, No);
1616 |
1717
1818error[E0716]: temporary value dropped while borrowed
19- --> $DIR/auto-trait-regions.rs:45 :35
19+ --> $DIR/auto-trait-regions.rs:26 :35
2020 |
2121LL | let a = A(&mut true, &mut true, No);
2222 | ^^^^ - temporary value is freed at the end of this statement
@@ -33,22 +33,22 @@ LL ~ let a = A(&mut true, &mut binding, No);
3333 |
3434
3535error: implementation of `Foo` is not general enough
36- --> $DIR/auto-trait-regions.rs:31 :5
36+ --> $DIR/auto-trait-regions.rs:32 :5
3737 |
3838LL | assert_foo(gen);
3939 | ^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough
4040 |
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 `
4343
4444error: implementation of `Foo` is not general enough
45- --> $DIR/auto-trait-regions.rs:51 :5
45+ --> $DIR/auto-trait-regions.rs:44 :5
4646 |
4747LL | assert_foo(gen);
4848 | ^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough
4949 |
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 `
5252
5353error: aborting due to 4 previous errors
5454
0 commit comments