]> git.lizzy.rs Git - rust.git/blob - tests/ui/implied-bounds/impl-header-unnormalized-types.stderr
Rollup merge of #107819 - clubby789:x-py-root, r=jyn514
[rust.git] / tests / ui / implied-bounds / impl-header-unnormalized-types.stderr
1 error[E0491]: in type `&'a &'b ()`, reference has a longer lifetime than the data it references
2   --> $DIR/impl-header-unnormalized-types.rs:15:18
3    |
4 LL |     type Assoc = &'a &'b ();
5    |                  ^^^^^^^^^^
6    |
7 note: the pointer is valid for the lifetime `'a` as defined here
8   --> $DIR/impl-header-unnormalized-types.rs:14:6
9    |
10 LL | impl<'a, 'b> NeedsWf<'a, 'b> for Foo<<&'a &'b () as GoodBye>::Forget> {
11    |      ^^
12 note: but the referenced data is only valid for the lifetime `'b` as defined here
13   --> $DIR/impl-header-unnormalized-types.rs:14:10
14    |
15 LL | impl<'a, 'b> NeedsWf<'a, 'b> for Foo<<&'a &'b () as GoodBye>::Forget> {
16    |          ^^
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0491`.