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