]> git.proxmox.com Git - rustc.git/blob - src/test/ui/hr-subtype/hr-subtype.bound_a_vs_free_x.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / hr-subtype / hr-subtype.bound_a_vs_free_x.stderr
1 error[E0308]: mismatched types
2 --> $DIR/hr-subtype.rs:39:26
3 |
4 LL | gimme::<$t1>(None::<$t2>);
5 | ^^^^^^^^^^^ expected concrete lifetime, found bound lifetime parameter 'a
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 `std::option::Option<for<'a> fn(&'a u32)>`
12 found enum `std::option::Option<fn(&'x u32)>`
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0308`.