mirror of
https://github.com/ahgamut/rust-ape-example.git
synced 2024-05-15 10:02:42 +00:00
21 lines
326 B
Rust
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();
|
|
}
|
|
|