]> git.lizzy.rs Git - rust.git/blob - src/test/ui/wf/wf-static-method.nll.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / wf / wf-static-method.nll.stderr
1 warning: not reporting region error due to nll
2   --> $DIR/wf-static-method.rs:27:9
3    |
4 LL |         u //~ ERROR E0312
5    |         ^
6
7 warning: not reporting region error due to nll
8   --> $DIR/wf-static-method.rs:36:18
9    |
10 LL |         let me = Self::make_me(); //~ ERROR lifetime bound not satisfied
11    |                  ^^^^^^^^^^^^^
12
13 warning: not reporting region error due to nll
14   --> $DIR/wf-static-method.rs:43:9
15    |
16 LL |         u //~ ERROR E0312
17    |         ^
18
19 warning: not reporting region error due to nll
20   --> $DIR/wf-static-method.rs:51:5
21    |
22 LL |     <()>::static_evil(b) //~ ERROR cannot infer an appropriate lifetime
23    |     ^^^^^^^^^^^^^^^^^
24
25 warning: not reporting region error due to nll
26   --> $DIR/wf-static-method.rs:55:5
27    |
28 LL |     <IndirectEvil>::static_evil(b)
29    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
31 error: unsatisfied lifetime constraints
32   --> $DIR/wf-static-method.rs:27:9
33    |
34 LL | impl<'a, 'b> Foo<'a, 'b, Evil<'a, 'b>> for () {
35    |      --  -- lifetime `'b` defined here
36    |      |
37    |      lifetime `'a` defined here
38 ...
39 LL |         u //~ ERROR E0312
40    |         ^ return requires that `'b` must outlive `'a`
41
42 error: unsatisfied lifetime constraints
43   --> $DIR/wf-static-method.rs:43:9
44    |
45 LL | impl<'a, 'b> Evil<'a, 'b> {
46    |      --  -- lifetime `'b` defined here
47    |      |
48    |      lifetime `'a` defined here
49 LL |     fn inherent_evil(u: &'b u32) -> &'a u32 {
50 LL |         u //~ ERROR E0312
51    |         ^ return requires that `'b` must outlive `'a`
52
53 error: aborting due to 2 previous errors
54