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