-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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.C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-langRelevant to the language teamRelevant to the language team
Description
trait A{}
fn main() {}
This won't yield a compiler warning. However the equivalent with a struct will:
struct A{}
fn main() {}
https://play.rust-lang.org/?gist=0787e43a11bb28969e9f4978954c3fdc
rustc 1.19.0-nightly (d3abc80 2017-05-09)
ozkriff, scalar438, bweston92, kaedroho, tommyip and 10 more
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.C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-langRelevant to the language teamRelevant to the language team