rust-ape-example/src/bin/attribute_unused.rs
2022-09-07 10:49:49 +05:30

21 lines
326 B
Rust

// ./src/attribute/unused.md
fn used_function() {}
// `#[allow(dead_code)]` is an attribute that disables the `dead_code` lint
#[allow(dead_code)]
fn unused_function() {}
//fn noisy_unused_function() {}
// FIXME ^ Add an attribute to suppress the warning
fn part0() {
used_function();
}
pub fn main() {
part0();
}