dtolnay/iota

Support pub(restricted) visibilities

Open

#4 opened on Dec 26, 2019

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Rust (1 fork)github user discovery
help wanted

Repository metrics

Stars
 (18 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

iota! {
    pub(crate) const A: u8 = 1 << iota;
        | B
        | C
}
error: no rules expected the token `(`
 --> src/main.rs:4:8
  |
4 |     pub(crate) const A: u8 = 1 << iota;
  |        ^ no rules expected this token in macro call

Contributor guide