3 The compiler provides a `dead_code`
4 [*lint*][lint] that will warn
5 about unused functions. An *attribute* can be used to disable the lint.
10 // `#[allow(dead_code)]` is an attribute that disables the `dead_code` lint
12 fn unused_function() {}
14 fn noisy_unused_function() {}
15 // FIXME ^ Add an attribute to suppress the warning
22 Note that in real programs, you should eliminate dead code. In these examples
23 we'll allow dead code in some places because of the interactive nature of the
26 [lint]: https://en.wikipedia.org/wiki/Lint_%28software%29