]> git.lizzy.rs Git - rust.git/blob - tests/ui/nll/user-annotations/normalization-self.stderr
Rollup merge of #106144 - tgross35:patch-1, r=Mark-Simulacrum
[rust.git] / tests / ui / nll / user-annotations / normalization-self.stderr
1 error: lifetime may not live long enough
2   --> $DIR/normalization-self.rs:9:14
3    |
4 LL |     fn test(x: &(), y: &()) {
5    |                - let's call the lifetime of this reference `'1`
6 LL |         Self(x);
7    |              ^ this usage requires that `'1` must outlive `'static`
8
9 error: lifetime may not live long enough
10   --> $DIR/normalization-self.rs:11:16
11    |
12 LL |     fn test(x: &(), y: &()) {
13    |                        - let's call the lifetime of this reference `'2`
14 ...
15 LL |         let _: Self = MyTuple(y);
16    |                ^^^^ type annotation requires that `'2` must outlive `'static`
17
18 error: lifetime may not live long enough
19   --> $DIR/normalization-self.rs:19:21
20    |
21 LL |     fn test(x: &(), y: &()) {
22    |                - let's call the lifetime of this reference `'1`
23 LL |         Self { val: x };
24    |                     ^ this usage requires that `'1` must outlive `'static`
25
26 error: lifetime may not live long enough
27   --> $DIR/normalization-self.rs:21:16
28    |
29 LL |     fn test(x: &(), y: &()) {
30    |                        - let's call the lifetime of this reference `'2`
31 ...
32 LL |         let _: Self = MyStruct { val: y };
33    |                ^^^^ type annotation requires that `'2` must outlive `'static`
34
35 error: aborting due to 4 previous errors
36