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