-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.
Description
I created the following main.rs
:
type Unused = String;
fn main() {
println!("Hello, world!");
}
Note that Unused
is not pub
and not used. Nevertheless no "unused" warning is given.
Here is the full (empty) output of cargo build
:
Finished debug [unoptimized + debuginfo] target(s) in 0.0 secs
dwillie and lambda-fairy
Metadata
Metadata
Assignees
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.