2020-07-23 17:39:35 +00:00
|
|
|
error: calling `std::string::String::default()` is more clear than this expression
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/default_trait_access.rs:8:22
|
2018-08-01 14:30:44 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | let s1: String = Default::default();
|
2018-08-01 14:30:44 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::default-trait-access` implied by `-D warnings`
|
2018-06-14 07:57:27 +00:00
|
|
|
|
2020-07-23 17:39:35 +00:00
|
|
|
error: calling `std::string::String::default()` is more clear than this expression
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/default_trait_access.rs:12:22
|
2018-06-14 07:57:27 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | let s3: String = D2::default();
|
2018-06-14 07:57:27 +00:00
|
|
|
| ^^^^^^^^^^^^^ help: try: `std::string::String::default()`
|
|
|
|
|
2020-07-23 17:39:35 +00:00
|
|
|
error: calling `std::string::String::default()` is more clear than this expression
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/default_trait_access.rs:14:22
|
2018-06-14 07:57:27 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | let s4: String = std::default::Default::default();
|
2018-06-14 07:57:27 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()`
|
|
|
|
|
2020-07-23 17:39:35 +00:00
|
|
|
error: calling `std::string::String::default()` is more clear than this expression
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/default_trait_access.rs:18:22
|
2018-06-14 07:57:27 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | let s6: String = default::Default::default();
|
2018-06-14 07:57:27 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()`
|
|
|
|
|
2020-07-23 17:39:35 +00:00
|
|
|
error: calling `GenericDerivedDefault<std::string::String>::default()` is more clear than this expression
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/default_trait_access.rs:28:46
|
2018-06-14 07:57:27 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | let s11: GenericDerivedDefault<String> = Default::default();
|
2018-06-17 21:58:08 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ help: try: `GenericDerivedDefault<std::string::String>::default()`
|
2018-06-14 07:57:27 +00:00
|
|
|
|
2020-07-23 17:39:35 +00:00
|
|
|
error: calling `TupleDerivedDefault::default()` is more clear than this expression
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/default_trait_access.rs:34:36
|
2018-06-17 21:58:08 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | let s14: TupleDerivedDefault = Default::default();
|
2018-06-17 21:58:08 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ help: try: `TupleDerivedDefault::default()`
|
|
|
|
|
2020-07-23 17:39:35 +00:00
|
|
|
error: calling `ArrayDerivedDefault::default()` is more clear than this expression
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/default_trait_access.rs:36:36
|
2018-06-17 21:58:08 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | let s15: ArrayDerivedDefault = Default::default();
|
2018-06-17 21:58:08 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ help: try: `ArrayDerivedDefault::default()`
|
|
|
|
|
2020-07-23 17:39:35 +00:00
|
|
|
error: calling `TupleStructDerivedDefault::default()` is more clear than this expression
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/default_trait_access.rs:40:42
|
2018-06-17 21:58:08 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | let s17: TupleStructDerivedDefault = Default::default();
|
2018-06-17 21:58:08 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ help: try: `TupleStructDerivedDefault::default()`
|
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
2018-06-14 07:57:27 +00:00
|
|
|
|