]> git.proxmox.com Git - rustc.git/blame - src/test/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-region.stderr
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / rfc-2093-infer-outlives / regions-outlives-nominal-type-region.stderr
CommitLineData
72b1a166 1error[E0491]: in type `&'a Foo<'b>`, reference has a longer lifetime than the data it references
0731742a 2 --> $DIR/regions-outlives-nominal-type-region.rs:17:9
0bf4aa26 3 |
532ac7d7 4LL | type Out = &'a Foo<'b>;
0bf4aa26
XL
5 | ^^^^^^^^^^^^^^^^^^^^^^^
6 |
e74abb32 7note: the pointer is valid for the lifetime `'a` as defined on the impl at 16:10
0731742a 8 --> $DIR/regions-outlives-nominal-type-region.rs:16:10
0bf4aa26
XL
9 |
10LL | impl<'a, 'b> Trait<'a, 'b> for usize {
11 | ^^
e74abb32 12note: but the referenced data is only valid for the lifetime `'b` as defined on the impl at 16:14
0731742a 13 --> $DIR/regions-outlives-nominal-type-region.rs:16:14
0bf4aa26
XL
14 |
15LL | impl<'a, 'b> Trait<'a, 'b> for usize {
16 | ^^
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0491`.