1 error: calling `std::string::String::default()` is more clear than this expression
2 --> $DIR/default_trait_access.rs:11:22
4 LL | let s1: String = Default::default();
5 | ^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()`
7 note: the lint level is defined here
8 --> $DIR/default_trait_access.rs:4:9
10 LL | #![deny(clippy::default_trait_access)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 error: calling `std::string::String::default()` is more clear than this expression
14 --> $DIR/default_trait_access.rs:15:22
16 LL | let s3: String = D2::default();
17 | ^^^^^^^^^^^^^ help: try: `std::string::String::default()`
19 error: calling `std::string::String::default()` is more clear than this expression
20 --> $DIR/default_trait_access.rs:17:22
22 LL | let s4: String = std::default::Default::default();
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()`
25 error: calling `std::string::String::default()` is more clear than this expression
26 --> $DIR/default_trait_access.rs:21:22
28 LL | let s6: String = default::Default::default();
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()`
31 error: calling `GenericDerivedDefault::default()` is more clear than this expression
32 --> $DIR/default_trait_access.rs:31:46
34 LL | let s11: GenericDerivedDefault<String> = Default::default();
35 | ^^^^^^^^^^^^^^^^^^ help: try: `GenericDerivedDefault::default()`
37 error: calling `TupleDerivedDefault::default()` is more clear than this expression
38 --> $DIR/default_trait_access.rs:37:36
40 LL | let s14: TupleDerivedDefault = Default::default();
41 | ^^^^^^^^^^^^^^^^^^ help: try: `TupleDerivedDefault::default()`
43 error: calling `ArrayDerivedDefault::default()` is more clear than this expression
44 --> $DIR/default_trait_access.rs:39:36
46 LL | let s15: ArrayDerivedDefault = Default::default();
47 | ^^^^^^^^^^^^^^^^^^ help: try: `ArrayDerivedDefault::default()`
49 error: calling `TupleStructDerivedDefault::default()` is more clear than this expression
50 --> $DIR/default_trait_access.rs:43:42
52 LL | let s17: TupleStructDerivedDefault = Default::default();
53 | ^^^^^^^^^^^^^^^^^^ help: try: `TupleStructDerivedDefault::default()`
55 error: aborting due to 8 previous errors