Skip to content

Commit

Permalink
fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Dec 15, 2024
1 parent 10c86c9 commit 21ac4fd
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions tests/ui/structs/manual-default-impl-could-be-derived.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ LL | | x: Default::default(),
| | ------------------
LL | | y: 0,
| | - these are the same values the expansion of `#[derive(Default)]` would use
LL | | }
LL | | }
... |
LL | | }
| |_^
|
Expand All @@ -76,8 +75,7 @@ LL | | fn default() -> Self {
LL | | E {
LL | | x: None,
| | ---- this is the same value the expansion of `#[derive(Default)]` would use
LL | | }
LL | | }
... |
LL | | }
| |_^
|
Expand Down Expand Up @@ -111,8 +109,7 @@ LL | | fn default() -> Self {
LL | | G {
LL | | f: F::Unit,
| | ------- this is the same value the expansion of `#[derive(Default)]` would use
LL | | }
LL | | }
... |
LL | | }
| |_^
|
Expand All @@ -133,8 +130,7 @@ LL | / impl Default for H {
LL | | fn default() -> Self {
LL | | H {
LL | | x: 1,
LL | | }
LL | | }
... |
LL | | }
| |_^
|
Expand Down Expand Up @@ -163,7 +159,6 @@ LL | | fn default() -> Self {
LL | | I {
LL | | x: 1,
... |
LL | | }
LL | | }
| |_^
|
Expand All @@ -180,8 +175,7 @@ LL | | fn default() -> Self {
LL | | J {
LL | | x: foo(), // fn call that isn't an assoc fn
| | ----- this is the same value the expansion of `#[derive(Default)]` would use
LL | | }
LL | | }
... |
LL | | }
| |_^
|
Expand All @@ -198,8 +192,7 @@ LL | | fn default() -> Self {
LL | | L {
LL | | x: Vec::new(), // `<Vec as Default>::default()` just calls `Vec::new()`
| | ---------- this is the same value the expansion of `#[derive(Default)]` would use
LL | | }
LL | | }
... |
LL | | }
| |_^
|
Expand All @@ -216,8 +209,7 @@ LL | | fn default() -> Self {
LL | | M {
LL | | x: N_CONST,
| | ------- this is the same value the expansion of `#[derive(Default)]` would use
LL | | }
LL | | }
... |
LL | | }
| |_^
|
Expand Down

0 comments on commit 21ac4fd

Please sign in to comment.