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
411 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
|
= note: expected fn pointer `for<'a> fn(&'a _) -> &'a _`
found fn pointer `fn(&_) -> &_`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0308`.