]> git.proxmox.com Git - rustc.git/blame - src/test/ui/hr-subtype/hr-subtype.free_inv_x_vs_free_inv_y.stderr
New upstream version 1.30.0~beta.7+dfsg1
[rustc.git] / src / test / ui / hr-subtype / hr-subtype.free_inv_x_vs_free_inv_y.stderr
CommitLineData
b7449926
XL
1error[E0308]: mismatched types
2 --> $DIR/hr-subtype.rs:43:26
3 |
4LL | gimme::<$t2>(None::<$t1>);
5 | ^^^^^^^^^^^ lifetime mismatch
6...
7LL | / check! { free_inv_x_vs_free_inv_y: (fn(Inv<'x>),
8LL | | fn(Inv<'y>)) }
9 | |__________________________________________________- in this macro invocation
10 |
11 = note: expected type `std::option::Option<fn(Inv<'y>)>`
12 found type `std::option::Option<fn(Inv<'x>)>`
13note: the lifetime 'x as defined on the function body at 42:20...
14 --> $DIR/hr-subtype.rs:42:20
15 |
16LL | fn subtype<'x,'y:'x,'z:'y>() {
17 | ^^
18...
19LL | / check! { free_inv_x_vs_free_inv_y: (fn(Inv<'x>),
20LL | | fn(Inv<'y>)) }
21 | |__________________________________________________- in this macro invocation
22note: ...does not necessarily outlive the lifetime 'y as defined on the function body at 42:23
23 --> $DIR/hr-subtype.rs:42:23
24 |
25LL | fn subtype<'x,'y:'x,'z:'y>() {
26 | ^^
27...
28LL | / check! { free_inv_x_vs_free_inv_y: (fn(Inv<'x>),
29LL | | fn(Inv<'y>)) }
30 | |__________________________________________________- in this macro invocation
31
32error[E0308]: mismatched types
33 --> $DIR/hr-subtype.rs:49:26
34 |
35LL | gimme::<$t1>(None::<$t2>);
36 | ^^^^^^^^^^^ lifetime mismatch
37...
38LL | / check! { free_inv_x_vs_free_inv_y: (fn(Inv<'x>),
39LL | | fn(Inv<'y>)) }
40 | |__________________________________________________- in this macro invocation
41 |
42 = note: expected type `std::option::Option<fn(Inv<'x>)>`
43 found type `std::option::Option<fn(Inv<'y>)>`
44note: the lifetime 'x as defined on the function body at 48:22...
45 --> $DIR/hr-subtype.rs:48:22
46 |
47LL | fn supertype<'x,'y:'x,'z:'y>() {
48 | ^^
49...
50LL | / check! { free_inv_x_vs_free_inv_y: (fn(Inv<'x>),
51LL | | fn(Inv<'y>)) }
52 | |__________________________________________________- in this macro invocation
53note: ...does not necessarily outlive the lifetime 'y as defined on the function body at 48:25
54 --> $DIR/hr-subtype.rs:48:25
55 |
56LL | fn supertype<'x,'y:'x,'z:'y>() {
57 | ^^
58...
59LL | / check! { free_inv_x_vs_free_inv_y: (fn(Inv<'x>),
60LL | | fn(Inv<'y>)) }
61 | |__________________________________________________- in this macro invocation
62
63error: aborting due to 2 previous errors
64
65For more information about this error, try `rustc --explain E0308`.