mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-22 19:13:29 +00:00
20 lines
525 B
Text
20 lines
525 B
Text
|
error: unnecessary structure name repetition
|
||
|
--> src/main.rs:6:21
|
||
|
|
|
||
|
6 | pub fn bar() -> Foo {
|
||
|
| ^^^ help: use the applicable keyword: `Self`
|
||
|
|
|
||
|
note: the lint level is defined here
|
||
|
--> src/main.rs:1:9
|
||
|
|
|
||
|
1 | #![deny(clippy::use_self)]
|
||
|
| ^^^^^^^^^^^^^^^^
|
||
|
|
||
|
error: unnecessary structure name repetition
|
||
|
--> src/main.rs:7:9
|
||
|
|
|
||
|
7 | Foo
|
||
|
| ^^^ help: use the applicable keyword: `Self`
|
||
|
|
||
|
error: could not compile `fail-clippy` (bin "fail-clippy") due to 2 previous errors
|