We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 351688d commit 466cd07Copy full SHA for 466cd07
tests/ui/use_self.rs
@@ -253,9 +253,7 @@ mod nesting {
253
254
impl Bar {
255
fn bar() -> Bar {
256
- Bar {
257
- foo: Foo{},
258
- }
+ Bar { foo: Foo {} }
259
}
260
261
tests/ui/use_self.stderr
@@ -159,7 +159,7 @@ LL | fn bar() -> Bar {
159
error: unnecessary structure name repetition
160
--> $DIR/use_self.rs:256:21
161
|
162
-LL | Bar {
+LL | Bar { foo: Foo {} }
163
| ^^^ help: use the applicable keyword: `Self`
164
165
error: aborting due to 26 previous errors
0 commit comments