]> git.proxmox.com Git - rustc.git/blame - src/test/ui/hr-subtype/hr-subtype.bound_a_vs_free_x.nll.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / hr-subtype / hr-subtype.bound_a_vs_free_x.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_a_vs_free_x: (for<'a> fn(&'a u32),
8LL | | fn(&'x u32)) }
9 | |______________- in this macro invocation
10 |
c295e0f8 11 = note: expected enum `Option<for<'a> fn(&'a u32)>`
94222f64 12 found enum `Option<fn(&u32)>`
17df50a5 13 = note: this error originates in the macro `check` (in Nightly builds, run with -Z macro-backtrace for more info)
f035d41b
XL
14
15error: aborting due to previous error
16
94222f64 17For more information about this error, try `rustc --explain E0308`.