Created
June 15, 2017 14:54
-
-
Save Geal/64d43e22a4538aa5dc242485ea69b4d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| trying to build: | |
| named!(no_compiler, | |
| do_parse!( | |
| length: be_u8 >> | |
| bytes: take!(length) | |
| ) | |
| ); | |
| you would get the following error | |
| $ cargo test --features nightly | |
| Compiling compiler_error v0.1.1 | |
| Compiling nom v3.0.0 (file:///Users/geal/dev/rust/projects/nom) | |
| error: "do_parse is missing the return value. A do_parse call must end | |
| with a return value between parenthesis, as follows: | |
| do_parse!( | |
| a: tag!(\"abcd\") >> | |
| b: tag!(\"efgh\") >> | |
| ( Value { a: a, b: b } ) | |
| " | |
| --> src/sequence.rs:368:5 | |
| | | |
| 368 | / compiler_error!("do_parse is missing the return value. A do_parse call must end | |
| 369 | | with a return value between parenthesis, as follows: | |
| 370 | | | |
| 371 | | do_parse!( | |
| ... | | |
| 375 | | ( Value { a: a, b: b } ) | |
| 376 | | "); | |
| | |______^ | |
| ... | |
| 851 | / named!(no_compiler, | |
| 852 | | do_parse!( | |
| 853 | | length: be_u8 >> | |
| 854 | | bytes: take!(length) | |
| 855 | | ) | |
| 856 | | ); | |
| | |___- in this macro invocation | |
| error: aborting due to previous error(s) | |
| error: Could not compile `nom`. | |
| Build failed, waiting for other jobs to finish... | |
| error: build failed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment