]>
Commit | Line | Data |
---|---|---|
f035d41b XL |
1 | error: higher-ranked subtype error |
2 | --> $DIR/hrtb-just-for-static.rs:24:5 | |
3 | | | |
4 | LL | want_hrtb::<StaticInt>() | |
5 | | ^^^^^^^^^^^^^^^^^^^^^^^^ | |
6 | ||
7 | error: lifetime may not live long enough | |
8 | --> $DIR/hrtb-just-for-static.rs:30:5 | |
9 | | | |
10 | LL | fn give_some<'a>() { | |
11 | | -- lifetime `'a` defined here | |
12 | LL | want_hrtb::<&'a u32>() | |
13 | | ^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static` | |
14 | | | |
15 | = help: consider replacing `'a` with `'static` | |
16 | ||
17 | error: higher-ranked subtype error | |
18 | --> $DIR/hrtb-just-for-static.rs:30:5 | |
19 | | | |
20 | LL | want_hrtb::<&'a u32>() | |
21 | | ^^^^^^^^^^^^^^^^^^^^ | |
22 | ||
23 | error: aborting due to 3 previous errors | |
24 |