Skip to content

Build error when compiling with esp-idf #599

@SeaRoll

Description

@SeaRoll

I get this error:

error[E0223]: ambiguous associated type
   --> /home/esp/.cargo/registry/src/index.crates.io-6f17d22bba15001f/heapless-0.9.1/src/c_string.rs:181:17
    |
181 |             Err(FromBytesWithNulError::InteriorNul { position }) => {
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
help: if there were a trait named `Example` with associated type `InteriorNul` implemented for `FromBytesWithNulError`, you could use the fully-qualified path
    |
181 |             Err(<FromBytesWithNulError as Example>::InteriorNul { position }) => {
    |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0599]: no associated item named `NotNulTerminated` found for struct `FromBytesWithNulError` in the current scope
   --> /home/esp/.cargo/registry/src/index.crates.io-6f17d22bba15001f/heapless-0.9.1/src/c_string.rs:184:40
    |
184 |             Err(FromBytesWithNulError::NotNulTerminated) => {
    |                                        ^^^^^^^^^^^^^^^^ associated item not found in `FromBytesWithNulError`

Which seems to be coming from this package.

This happens when using with HistoryBuf to be more exact

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions