fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
659 B20 linesraw
1error[E0478]: lifetime bound not satisfied
2  --> $DIR/E0478.rs:4:12
3   |
4LL |     child: Box<dyn Wedding<'kiss> + 'SnowWhite>,
5   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7note: lifetime parameter instantiated with the lifetime `'SnowWhite` as defined here
8  --> $DIR/E0478.rs:3:22
9   |
10LL | struct Prince<'kiss, 'SnowWhite> {
11   |                      ^^^^^^^^^^
12note: but lifetime parameter must outlive the lifetime `'kiss` as defined here
13  --> $DIR/E0478.rs:3:15
14   |
15LL | struct Prince<'kiss, 'SnowWhite> {
16   |               ^^^^^
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0478`.