rust/tests/ui/nll/relate_tys/universe-violation.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
417 B
Plaintext
Raw Normal View History

error[E0308]: mismatched types
2022-04-01 12:13:25 -05:00
--> $DIR/universe-violation.rs:13:31
|
2019-03-09 06:03:44 -06:00
LL | let b: fn(&u32) -> &u32 = a;
| ^ 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`
found fn pointer `fn(&u32) -> &u32`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.