2018-06-14 02:57:27 -05:00
|
|
|
error: Calling std::string::String::default() is more clear than this expression
|
2018-08-01 09:30:44 -05:00
|
|
|
--> $DIR/default_trait_access.rs:10:22
|
|
|
|
|
|
|
|
|
10 | let s1: String = Default::default();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::default-trait-access` implied by `-D warnings`
|
2018-06-14 02:57:27 -05:00
|
|
|
|
|
|
|
error: Calling std::string::String::default() is more clear than this expression
|
2018-08-01 09:30:44 -05:00
|
|
|
--> $DIR/default_trait_access.rs:14:22
|
2018-06-14 02:57:27 -05:00
|
|
|
|
|
2018-08-01 09:30:44 -05:00
|
|
|
14 | let s3: String = D2::default();
|
2018-06-14 02:57:27 -05:00
|
|
|
| ^^^^^^^^^^^^^ help: try: `std::string::String::default()`
|
|
|
|
|
|
|
|
error: Calling std::string::String::default() is more clear than this expression
|
2018-08-01 09:30:44 -05:00
|
|
|
--> $DIR/default_trait_access.rs:16:22
|
2018-06-14 02:57:27 -05:00
|
|
|
|
|
2018-08-01 09:30:44 -05:00
|
|
|
16 | let s4: String = std::default::Default::default();
|
2018-06-14 02:57:27 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()`
|
|
|
|
|
|
|
|
error: Calling std::string::String::default() is more clear than this expression
|
2018-08-01 09:30:44 -05:00
|
|
|
--> $DIR/default_trait_access.rs:20:22
|
2018-06-14 02:57:27 -05:00
|
|
|
|
|
2018-08-01 09:30:44 -05:00
|
|
|
20 | let s6: String = default::Default::default();
|
2018-06-14 02:57:27 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()`
|
|
|
|
|
2018-06-17 16:58:08 -05:00
|
|
|
error: Calling GenericDerivedDefault<std::string::String>::default() is more clear than this expression
|
2018-08-01 09:30:44 -05:00
|
|
|
--> $DIR/default_trait_access.rs:30:46
|
2018-06-14 02:57:27 -05:00
|
|
|
|
|
2018-08-01 09:30:44 -05:00
|
|
|
30 | let s11: GenericDerivedDefault<String> = Default::default();
|
2018-06-17 16:58:08 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ help: try: `GenericDerivedDefault<std::string::String>::default()`
|
2018-06-14 02:57:27 -05:00
|
|
|
|
2018-06-17 16:58:08 -05:00
|
|
|
error: Calling TupleDerivedDefault::default() is more clear than this expression
|
2018-08-01 09:30:44 -05:00
|
|
|
--> $DIR/default_trait_access.rs:36:36
|
2018-06-17 16:58:08 -05:00
|
|
|
|
|
2018-08-01 09:30:44 -05:00
|
|
|
36 | let s14: TupleDerivedDefault = Default::default();
|
2018-06-17 16:58:08 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ help: try: `TupleDerivedDefault::default()`
|
|
|
|
|
|
|
|
error: Calling ArrayDerivedDefault::default() is more clear than this expression
|
2018-08-01 09:30:44 -05:00
|
|
|
--> $DIR/default_trait_access.rs:38:36
|
2018-06-17 16:58:08 -05:00
|
|
|
|
|
2018-08-01 09:30:44 -05:00
|
|
|
38 | let s15: ArrayDerivedDefault = Default::default();
|
2018-06-17 16:58:08 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ help: try: `ArrayDerivedDefault::default()`
|
|
|
|
|
|
|
|
error: Calling TupleStructDerivedDefault::default() is more clear than this expression
|
2018-08-01 09:30:44 -05:00
|
|
|
--> $DIR/default_trait_access.rs:42:42
|
2018-06-17 16:58:08 -05:00
|
|
|
|
|
2018-08-01 09:30:44 -05:00
|
|
|
42 | let s17: TupleStructDerivedDefault = Default::default();
|
2018-06-17 16:58:08 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ help: try: `TupleStructDerivedDefault::default()`
|
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
2018-06-14 02:57:27 -05:00
|
|
|
|