2018-11-19 10:26:04 -05:00
|
|
|
error[E0308]: mismatched types
|
2018-11-19 10:47:34 -05:00
|
|
|
--> $DIR/hrtb-exists-forall-fn.rs:17:34
|
2018-10-30 16:38:50 -04:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let _: for<'b> fn(&'b u32) = foo();
|
2023-08-09 01:10:08 +00:00
|
|
|
| ------------------- ^^^^^ one type is more general than the other
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2018-10-30 16:38:50 -04:00
|
|
|
|
|
2023-12-07 22:54:41 -05:00
|
|
|
= note: expected fn pointer `for<'b> fn(&'b _)`
|
|
|
|
found fn pointer `fn(&_)`
|
2018-10-30 16:38:50 -04:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-10-30 16:38:50 -04:00
|
|
|
|
2018-11-19 10:26:04 -05:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|