Skip to content

Instantly share code, notes, and snippets.

@mloc
Created February 20, 2018 12:44
Show Gist options
  • Save mloc/75cf9bbc150a40064d692bca888a8fa0 to your computer and use it in GitHub Desktop.
Save mloc/75cf9bbc150a40064d692bca888a8fa0 to your computer and use it in GitHub Desktop.
error[E0282]: type annotations needed
--> src/main.rs:3:1
|
3 | named!(parser<Vec<Vec<&[u8]>>>,
| _^
| |_|
| ||
4 | || separated_list!(
5 | || tag!("def"),
6 | || many0!(tag!("abc"))
7 | || )
8 | || );
| || ^
| ||__|
| |___cannot infer type for `E`
| consider giving `ret` a type
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error: aborting due to previous error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment