]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/default_trait_access.stderr
iterate List by value
[rust.git] / tests / ui / default_trait_access.stderr
index d6ae00214c04d7829be4bcd17f4085c08e407f0e..453760c6b9211c338130d9fadad206af116440e2 100644 (file)
@@ -1,51 +1,51 @@
-error: Calling std::string::String::default() is more clear than this expression
-  --> $DIR/default_trait_access.rs:20:22
+error: Calling `std::string::String::default()` is more clear than this expression
+  --> $DIR/default_trait_access.rs:8:22
    |
-20 |     let s1: String = Default::default();
+LL |     let s1: String = Default::default();
    |                      ^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()`
    |
    = note: `-D clippy::default-trait-access` implied by `-D warnings`
 
-error: Calling std::string::String::default() is more clear than this expression
-  --> $DIR/default_trait_access.rs:24:22
+error: Calling `std::string::String::default()` is more clear than this expression
+  --> $DIR/default_trait_access.rs:12:22
    |
-24 |     let s3: String = D2::default();
+LL |     let s3: String = D2::default();
    |                      ^^^^^^^^^^^^^ help: try: `std::string::String::default()`
 
-error: Calling std::string::String::default() is more clear than this expression
-  --> $DIR/default_trait_access.rs:26:22
+error: Calling `std::string::String::default()` is more clear than this expression
+  --> $DIR/default_trait_access.rs:14:22
    |
-26 |     let s4: String = std::default::Default::default();
+LL |     let s4: String = std::default::Default::default();
    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()`
 
-error: Calling std::string::String::default() is more clear than this expression
-  --> $DIR/default_trait_access.rs:30:22
+error: Calling `std::string::String::default()` is more clear than this expression
+  --> $DIR/default_trait_access.rs:18:22
    |
-30 |     let s6: String = default::Default::default();
+LL |     let s6: String = default::Default::default();
    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()`
 
-error: Calling GenericDerivedDefault<std::string::String>::default() is more clear than this expression
-  --> $DIR/default_trait_access.rs:40:46
+error: Calling `GenericDerivedDefault<std::string::String>::default()` is more clear than this expression
+  --> $DIR/default_trait_access.rs:28:46
    |
-40 |     let s11: GenericDerivedDefault<String> = Default::default();
+LL |     let s11: GenericDerivedDefault<String> = Default::default();
    |                                              ^^^^^^^^^^^^^^^^^^ help: try: `GenericDerivedDefault<std::string::String>::default()`
 
-error: Calling TupleDerivedDefault::default() is more clear than this expression
-  --> $DIR/default_trait_access.rs:46:36
+error: Calling `TupleDerivedDefault::default()` is more clear than this expression
+  --> $DIR/default_trait_access.rs:34:36
    |
-46 |     let s14: TupleDerivedDefault = Default::default();
+LL |     let s14: TupleDerivedDefault = Default::default();
    |                                    ^^^^^^^^^^^^^^^^^^ help: try: `TupleDerivedDefault::default()`
 
-error: Calling ArrayDerivedDefault::default() is more clear than this expression
-  --> $DIR/default_trait_access.rs:48:36
+error: Calling `ArrayDerivedDefault::default()` is more clear than this expression
+  --> $DIR/default_trait_access.rs:36:36
    |
-48 |     let s15: ArrayDerivedDefault = Default::default();
+LL |     let s15: ArrayDerivedDefault = Default::default();
    |                                    ^^^^^^^^^^^^^^^^^^ help: try: `ArrayDerivedDefault::default()`
 
-error: Calling TupleStructDerivedDefault::default() is more clear than this expression
-  --> $DIR/default_trait_access.rs:52:42
+error: Calling `TupleStructDerivedDefault::default()` is more clear than this expression
+  --> $DIR/default_trait_access.rs:40:42
    |
-52 |     let s17: TupleStructDerivedDefault = Default::default();
+LL |     let s17: TupleStructDerivedDefault = Default::default();
    |                                          ^^^^^^^^^^^^^^^^^^ help: try: `TupleStructDerivedDefault::default()`
 
 error: aborting due to 8 previous errors