8000 `cddl-codegen-rust` choices with the same type duplicate enum variants · Issue #906 · anweiss/cddl · GitHub
[go: up one dir, main page]

Skip to content

cddl-codegen-rust choices with the same type duplicate enum variants #906

Closed

Description

@ok-nick

Minimal reproduction

u = tstr .regexp "a" / tstr .regexp "b"
#[serde(untagged)]
pub enum U {
    Tstr(String),
    Tstr(String), // error[E0428]: the name `Tstr` is defined multiple times
}

Expected and actual behavior

Emit only one variant, I think regexes in this case are out of scope?

Version and environment

main branch

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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0