diff --git a/tests/ui/use_self.rs b/tests/ui/use_self.rs index 464dd8143..a117ce589 100644 --- a/tests/ui/use_self.rs +++ b/tests/ui/use_self.rs @@ -253,9 +253,7 @@ mod nesting { impl Bar { fn bar() -> Bar { - Bar { - foo: Foo{}, - } + Bar { foo: Foo {} } } } } diff --git a/tests/ui/use_self.stderr b/tests/ui/use_self.stderr index a388579c9..72b60db7f 100644 --- a/tests/ui/use_self.stderr +++ b/tests/ui/use_self.stderr @@ -159,7 +159,7 @@ LL | fn bar() -> Bar { error: unnecessary structure name repetition --> $DIR/use_self.rs:256:21 | -LL | Bar { +LL | Bar { foo: Foo {} } | ^^^ help: use the applicable keyword: `Self` error: aborting due to 26 previous errors