2022-05-10 07:46:05 -05:00
|
|
|
error: unnecessary structure name repetition
|
2023-04-20 10:19:36 -05:00
|
|
|
--> src/main.rs:11:21
|
2022-05-10 07:46:05 -05:00
|
|
|
|
|
2023-04-20 10:19:36 -05:00
|
|
|
11 | pub fn bar() -> Foo {
|
2022-05-10 07:46:05 -05:00
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2023-04-20 10:19:36 -05:00
|
|
|
--> src/main.rs:6:9
|
2022-05-10 07:46:05 -05:00
|
|
|
|
|
2023-04-20 10:19:36 -05:00
|
|
|
6 | #![deny(clippy::use_self)]
|
2022-05-10 07:46:05 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
2022-10-26 11:10:40 -05:00
|
|
|
error: unnecessary structure name repetition
|
2023-04-20 10:19:36 -05:00
|
|
|
--> src/main.rs:12:9
|
2022-10-26 11:10:40 -05:00
|
|
|
|
|
2023-04-20 10:19:36 -05:00
|
|
|
12 | Foo
|
2022-10-26 11:10:40 -05:00
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
2023-04-20 10:19:36 -05:00
|
|
|
error: could not compile `fail-file-attr` (bin "fail-file-attr") due to 2 previous errors
|