1 error: Calling std::string::String::default() is more clear than this expression
2 --> $DIR/default_trait_access.rs:10:22
4 10 | let s1: String = Default::default();
5 | ^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()`
7 = note: `-D clippy::default-trait-access` implied by `-D warnings`
9 error: Calling std::string::String::default() is more clear than this expression
10 --> $DIR/default_trait_access.rs:14:22
12 14 | let s3: String = D2::default();
13 | ^^^^^^^^^^^^^ help: try: `std::string::String::default()`
15 error: Calling std::string::String::default() is more clear than this expression
16 --> $DIR/default_trait_access.rs:16:22
18 16 | let s4: String = std::default::Default::default();
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()`
21 error: Calling std::string::String::default() is more clear than this expression
22 --> $DIR/default_trait_access.rs:20:22
24 20 | let s6: String = default::Default::default();
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()`
27 error: Calling GenericDerivedDefault<std::string::String>::default() is more clear than this expression
28 --> $DIR/default_trait_access.rs:30:46
30 30 | let s11: GenericDerivedDefault<String> = Default::default();
31 | ^^^^^^^^^^^^^^^^^^ help: try: `GenericDerivedDefault<std::string::String>::default()`
33 error: Calling TupleDerivedDefault::default() is more clear than this expression
34 --> $DIR/default_trait_access.rs:36:36
36 36 | let s14: TupleDerivedDefault = Default::default();
37 | ^^^^^^^^^^^^^^^^^^ help: try: `TupleDerivedDefault::default()`
39 error: Calling ArrayDerivedDefault::default() is more clear than this expression
40 --> $DIR/default_trait_access.rs:38:36
42 38 | let s15: ArrayDerivedDefault = Default::default();
43 | ^^^^^^^^^^^^^^^^^^ help: try: `ArrayDerivedDefault::default()`
45 error: Calling TupleStructDerivedDefault::default() is more clear than this expression
46 --> $DIR/default_trait_access.rs:42:42
48 42 | let s17: TupleStructDerivedDefault = Default::default();
49 | ^^^^^^^^^^^^^^^^^^ help: try: `TupleStructDerivedDefault::default()`
51 error: aborting due to 8 previous errors