]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hr-subtype/hr-subtype.bound_inv_a_b_vs_bound_inv_a.nll.stderr
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / hr-subtype / hr-subtype.bound_inv_a_b_vs_bound_inv_a.nll.stderr
1 error: higher-ranked subtype error
2   --> $DIR/hr-subtype.rs:45:13
3    |
4 LL |               gimme::<$t1>(None::<$t2>);
5    |               ^^^^^^^^^^^^^^^^^^^^^^^^^
6 ...
7 LL | / check! { bound_inv_a_b_vs_bound_inv_a: (for<'a,'b> fn(Inv<'a>, Inv<'b>),
8 LL | | for<'a>    fn(Inv<'a>, Inv<'a>)) }
9    | |__________________________________- in this macro invocation
10    |
11    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
12
13 error: higher-ranked subtype error
14   --> $DIR/hr-subtype.rs:45:13
15    |
16 LL |               gimme::<$t1>(None::<$t2>);
17    |               ^^^^^^^^^^^^^^^^^^^^^^^^^
18 ...
19 LL | / check! { bound_inv_a_b_vs_bound_inv_a: (for<'a,'b> fn(Inv<'a>, Inv<'b>),
20 LL | | for<'a>    fn(Inv<'a>, Inv<'a>)) }
21    | |__________________________________- in this macro invocation
22    |
23    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
24
25 error: aborting due to 2 previous errors
26