]> git.proxmox.com Git - rustc.git/blame - src/test/ui/hr-subtype/hr-subtype.bound_inv_a_b_vs_bound_inv_a.nll.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / hr-subtype / hr-subtype.bound_inv_a_b_vs_bound_inv_a.nll.stderr
CommitLineData
94222f64 1error[E0308]: mismatched types
f035d41b
XL
2 --> $DIR/hr-subtype.rs:45:13
3 |
4LL | gimme::<$t1>(None::<$t2>);
94222f64 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
f035d41b
XL
6...
7LL | / check! { bound_inv_a_b_vs_bound_inv_a: (for<'a,'b> fn(Inv<'a>, Inv<'b>),
8LL | | for<'a> fn(Inv<'a>, Inv<'a>)) }
9 | |__________________________________- in this macro invocation
10 |
94222f64
XL
11 = note: expected enum `Option<for<'r, 's> fn(Inv<'r>, Inv<'s>)>`
12 found enum `Option<for<'r> fn(Inv<'r>, Inv<'r>)>`
17df50a5 13 = note: this error originates in the macro `check` (in Nightly builds, run with -Z macro-backtrace for more info)
f035d41b 14
94222f64 15error[E0308]: mismatched types
f035d41b
XL
16 --> $DIR/hr-subtype.rs:45:13
17 |
18LL | gimme::<$t1>(None::<$t2>);
94222f64 19 | ^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
f035d41b
XL
20...
21LL | / check! { bound_inv_a_b_vs_bound_inv_a: (for<'a,'b> fn(Inv<'a>, Inv<'b>),
22LL | | for<'a> fn(Inv<'a>, Inv<'a>)) }
23 | |__________________________________- in this macro invocation
24 |
94222f64
XL
25 = note: expected enum `Option<for<'r, 's> fn(Inv<'r>, Inv<'s>)>`
26 found enum `Option<for<'r> fn(Inv<'r>, Inv<'r>)>`
17df50a5 27 = note: this error originates in the macro `check` (in Nightly builds, run with -Z macro-backtrace for more info)
f035d41b
XL
28
29error: aborting due to 2 previous errors
30
94222f64 31For more information about this error, try `rustc --explain E0308`.