]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hr-subtype/hr-subtype.bound_a_vs_free_x.stderr
Rollup merge of #97629 - guswynn:exclusive_struct, r=m-ou-se
[rust.git] / src / test / ui / hr-subtype / hr-subtype.bound_a_vs_free_x.stderr
1 error[E0308]: mismatched types
2   --> $DIR/hr-subtype.rs:54:13
3    |
4 LL |               gimme::<$t1>(None::<$t2>);
5    |               ^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
6 ...
7 LL | / check! { bound_a_vs_free_x: (for<'a> fn(&'a u32),
8 LL | | fn(&'x u32)) }
9    | |______________- in this macro invocation
10    |
11    = note: expected enum `Option<for<'a> fn(&'a u32)>`
12               found enum `Option<fn(&u32)>`
13    = note: this error originates in the macro `check` (in Nightly builds, run with -Z macro-backtrace for more info)
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0308`.