mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-17 06:26:55 +00:00
Rustftmt
This commit is contained in:
parent
351688db78
commit
466cd076a2
@ -253,9 +253,7 @@ mod nesting {
|
||||
|
||||
impl Bar {
|
||||
fn bar() -> Bar {
|
||||
Bar {
|
||||
foo: Foo{},
|
||||
}
|
||||
Bar { foo: Foo {} }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user