How to allow dead code in Rust

1 Answer

0 votes
#[allow(dead_code)]

struct Structure(i32); // OK

fn main() {
    let x = 8;
    let y = 128;
    println!("{number:0>width$}", number=y, width=x);
}




/*
run:

00000128

*/

 



answered May 2, 2023 by avibootz
...