]> git.proxmox.com Git - rustc.git/blame - src/test/ui/hr-subtype/hr-subtype.bound_a_vs_free_x.stderr
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / ui / hr-subtype / hr-subtype.bound_a_vs_free_x.stderr
CommitLineData
b7449926 1error[E0308]: mismatched types
f035d41b 2 --> $DIR/hr-subtype.rs:45:26
b7449926
XL
3 |
4LL | gimme::<$t1>(None::<$t2>);
f035d41b 5 | ^^^^^^^^^^^ one type is more general than the other
b7449926
XL
6...
7LL | / check! { bound_a_vs_free_x: (for<'a> fn(&'a u32),
f035d41b
XL
8LL | | fn(&'x u32)) }
9 | |______________- in this macro invocation
b7449926 10 |
1b1a35ee
XL
11 = note: expected enum `Option<for<'a> fn(&'a u32)>`
12 found enum `Option<fn(&'x u32)>`
17df50a5 13 = note: this error originates in the macro `check` (in Nightly builds, run with -Z macro-backtrace for more info)
b7449926
XL
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0308`.