Skip to content

Debug output doesn't honor formatting specifier x #268

Description

@chkno
use num_bigint::BigUint;
 
fn main() {
    let small = 32768usize;
    let big = BigUint::from(small);
    println!("{small:x} {big:x}");
    println!("{small:x?} {big:x?}");
}

Prints:

8000 8000
8000 32768

It should print:

8000 8000
8000 8000

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