]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/unsatisfied-outlives-bound.stderr
Rollup merge of #102954 - GuillaumeGomez:cfg-hide-attr-checks, r=Manishearth
[rust.git] / src / test / ui / generic-associated-types / unsatisfied-outlives-bound.stderr
1 error[E0477]: the type `&'b ()` does not fulfill the required lifetime
2   --> $DIR/unsatisfied-outlives-bound.rs:6:21
3    |
4 LL |     type Item<'a> = &'b ();
5    |                     ^^^^^^
6    |
7 note: type must outlive the lifetime `'a` as defined here as required by this binding
8   --> $DIR/unsatisfied-outlives-bound.rs:6:15
9    |
10 LL |     type Item<'a> = &'b ();
11    |               ^^
12
13 error[E0477]: the type `&'a ()` does not fulfill the required lifetime
14   --> $DIR/unsatisfied-outlives-bound.rs:15:21
15    |
16 LL |     type Item<'a> = &'a ();
17    |                     ^^^^^^
18    |
19 note: type must satisfy the static lifetime as required by this binding
20   --> $DIR/unsatisfied-outlives-bound.rs:11:20
21    |
22 LL |     type Item<'a>: 'static;
23    |                    ^^^^^^^
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0477`.