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
|
|
|
|
|
|
2023-12-07 21:54:41 -06:00
|
|
|
= note: expected fn pointer `for<'a> fn(&'a _) -> &'a _`
|
|
|
|
found fn pointer `fn(&_) -> &_`
|
2018-09-05 08:38:06 -05:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 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`.
|