Skip to content

Brace requirement #1

@ileixe

Description

@ileixe

Hi,

I'm trying to use your library as its API is exactly what I'm looking for, and have a simple question.

use bounded_types::BoundedU64;

pub mod s {
    pub const a: u64 = 100;
    pub const b: u64 = 200;
}

// fn hello(c: BoundedU64<{ s::a }, { s::b }>) {} // Working
fn hello(c: BoundedU64<s::a, s::b>) {} // Not working
fn main() {}

it seems that variables in mod could not be used right away without brace so that it's a bit more verbose. Is there any way to work around it?

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