Merge commit '0621446356' into clippy-subtree-update
This commit is contained in:
parent
ed892e72dd
commit
ff428d91c2
746 changed files with 13925 additions and 7188 deletions
|
|
@ -161,3 +161,17 @@ fn main() {
|
|||
|
||||
let _ = <struct_from_macro!()>::default();
|
||||
}
|
||||
|
||||
fn issue12654() {
|
||||
#[derive(Default)]
|
||||
struct G;
|
||||
|
||||
fn f(_g: G) {}
|
||||
|
||||
f(<_>::default());
|
||||
f(G);
|
||||
//~^ default_constructed_unit_structs
|
||||
|
||||
// No lint because `as Default` hides the singleton
|
||||
f(<G as Default>::default());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue