-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thing
Description
#![deny(clippy::default_trait_access)]
fn main () {
let x: Vec<u32> = Default::default();
}
clippy suggests std::vec::Vec<u32>::default()
error: comparison operators cannot be chained
--> src/main.rs:3:36
|
3 | let x: Vec<u32> = std::vec::Vec<u32>::default();
| ^ ^
|
help: use `::<...>` instead of `<...>` to specify type arguments
|
3 | let x: Vec<u32> = std::vec::Vec::<u32>::default();
Metadata
Metadata
Assignees
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thing