Skip to content

nonempty! with a single macro fails to compile #68

Description

@greyblake

First of all, thank you for a really great crate! It makes my life better.

I ran into a tiny bug that I want to report here.

use nonempty::nonempty;

fn main() {
    // Fails to compile (not expected!)
    // Error:
    //     use of undeclared crate or module `alloc`
    let one = nonempty![1];
}

The code above does not compile.

By now I've figured out that I'd need to add

extern crate alloc;

But it's quite weird, considering, that

let two = nonempty![1, 2];

works without extern crate alloc;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions