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