]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-early-bound-error-method.nll.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / regions / regions-early-bound-error-method.nll.stderr
1 warning: not reporting region error due to nll
2   --> $DIR/regions-early-bound-error-method.rs:30:9
3    |
4 LL |         g2.get()
5    |         ^^^^^^^^
6
7 error: unsatisfied lifetime constraints
8   --> $DIR/regions-early-bound-error-method.rs:30:9
9    |
10 LL | impl<'a> Box<'a> {
11    |      -- lifetime `'a` defined here
12 LL |     fn or<'b,G:GetRef<'b>>(&self, g2: G) -> &'a isize {
13    |           -- lifetime `'b` defined here
14 LL |         g2.get()
15    |         ^^^^^^^^ argument requires that `'b` must outlive `'a`
16
17 error: aborting due to previous error
18