]> git.lizzy.rs Git - rust.git/blob - tests/ui/regions/regions-assoc-type-region-bound-in-trait-not-met.stderr
internally change regions to be covariant
[rust.git] / tests / ui / regions / regions-assoc-type-region-bound-in-trait-not-met.stderr
1 error[E0477]: the type `&'a i32` does not fulfill the required lifetime
2   --> $DIR/regions-assoc-type-region-bound-in-trait-not-met.rs:15:18
3    |
4 LL |     type Value = &'a i32;
5    |                  ^^^^^^^
6    |
7 note: type must satisfy the static lifetime as required by this binding
8   --> $DIR/regions-assoc-type-region-bound-in-trait-not-met.rs:5:17
9    |
10 LL |     type Value: 'a;
11    |                 ^^
12
13 error[E0477]: the type `&'a i32` does not fulfill the required lifetime
14   --> $DIR/regions-assoc-type-region-bound-in-trait-not-met.rs:20:18
15    |
16 LL |     type Value = &'a i32;
17    |                  ^^^^^^^
18    |
19 note: type must outlive the lifetime `'b` as defined here as required by this binding
20   --> $DIR/regions-assoc-type-region-bound-in-trait-not-met.rs:19:10
21    |
22 LL | impl<'a, 'b> Foo<'b> for &'a i64 {
23    |          ^^
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0477`.