1 error: Calling std::string::String::default() is more clear than this expression
2 --> $DIR/default_trait_access.rs:8:22
4 8 | let s1: String = Default::default();
5 | ^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()`
7 = note: `-D 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:12:22
12 12 | 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:14:22
18 14 | 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:18:22
24 18 | let s6: String = default::Default::default();
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()`
27 error: Calling T::default() is more clear than this expression
28 --> $DIR/default_trait_access.rs:33:9
30 33 | Default::default()
31 | ^^^^^^^^^^^^^^^^^^ help: try: `T::default()`
33 error: aborting due to 5 previous errors