2021-03-07 09:08:52 -06:00
|
|
|
error[E0308]: mismatched types
|
2022-04-01 12:13:25 -05:00
|
|
|
--> $DIR/universe-violation.rs:13:31
|
2018-09-05 08:38:06 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let b: fn(&u32) -> &u32 = a;
|
2021-03-07 09:08:52 -06:00
|
|
|
| ^ one type is more general than the other
|
|
|
|
|
|
2022-09-21 10:57:30 -05:00
|
|
|
= note: expected fn pointer `for<'a> fn(&'a u32) -> &'a u32`
|
2021-03-07 09:08:52 -06:00
|
|
|
found fn pointer `fn(&u32) -> &u32`
|
2018-09-05 08:38:06 -05:00
|
|
|
|
2018-09-05 15:23:45 -05:00
|
|
|
error: aborting due to previous error
|
2018-09-05 08:38:06 -05:00
|
|
|
|
2021-03-07 09:08:52 -06:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|