Skip to content

Instantly share code, notes, and snippets.

@mloc
Created February 17, 2018 13:13
Show Gist options
  • Save mloc/d500ffa55bff46080ccfc9093bc3cab4 to your computer and use it in GitHub Desktop.
Save mloc/d500ffa55bff46080ccfc9093bc3cab4 to your computer and use it in GitHub Desktop.
error[E0277]: the trait bound `&[u8]: nom::Compare<char>` is not satisfied
--> src/main.rs:3:1
|
3 | / named!(ident,
4 | | recognize!(tuple!(
5 | | tag!('_'),
6 | | tag!('_')
7 | | ))
8 | | );
| |__^ the trait `nom::Compare<char>` is not implemented for `&[u8]`
|
= help: the following implementations were found:
<&'a [u8] as nom::Compare<&'b [u8; <unevaluated[]>]>>
<&'a [u8] as nom::Compare<[u8; <unevaluated[]>]>>
<&'a [u8] as nom::Compare<[u8; <unevaluated[]>]>>
<&'a [u8] as nom::Compare<&'b [u8; <unevaluated[]>]>>
and 64 others
= 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[E0599]: no method named `input_len` found for type `char` in the current scope
--> src/main.rs:3:1
|
3 | / named!(ident,
4 | | recognize!(tuple!(
5 | | tag!('_'),
6 | | tag!('_')
7 | | ))
8 | | );
| |__^
|
= 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[E0599]: no method named `input_len` found for type `char` in the current scope
--> src/main.rs:3:1
|
3 | / named!(ident,
4 | | recognize!(tuple!(
5 | | tag!('_'),
6 | | tag!('_')
7 | | ))
8 | | );
| |__^
|
= 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[E0599]: no method named `input_len` found for type `char` in the current scope
--> src/main.rs:3:1
|
3 | / named!(ident,
4 | | recognize!(tuple!(
5 | | tag!('_'),
6 | | tag!('_')
7 | | ))
8 | | );
| |__^
|
= 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[E0599]: no method named `input_len` found for type `char` in the current scope
--> src/main.rs:3:1
|
3 | / named!(ident,
4 | | recognize!(tuple!(
5 | | tag!('_'),
6 | | tag!('_')
7 | | ))
8 | | );
| |__^
|
= 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 5 previous errors
error: Could not compile `nbug`.
To learn more, run the command again with --verbose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment