mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 00:47:16 +00:00
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:14:21
|
|
|
|
|
14 | fn new() -> Foo {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
= note: `-D use-self` implied by `-D warnings`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:15:13
|
|
|
|
|
15 | Foo {}
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:17:22
|
|
|
|
|
17 | fn test() -> Foo {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:18:13
|
|
|
|
|
18 | Foo::new()
|
|
| ^^^^^^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:23:25
|
|
|
|
|
23 | fn default() -> Foo {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:24:13
|
|
|
|
|
24 | Foo::new()
|
|
| ^^^^^^^^ help: use the applicable keyword: `Self`
|
|
|