2022-06-30 03:50:09 -05:00
|
|
|
error: unnecessary structure name repetition
|
2023-07-02 07:35:19 -05:00
|
|
|
--> src/main.rs:11:21
|
2022-06-30 03:50:09 -05:00
|
|
|
|
|
2023-07-02 07:35:19 -05:00
|
|
|
11 | pub fn bar() -> Foo {
|
2022-06-30 03:50:09 -05:00
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2023-07-02 07:35:19 -05:00
|
|
|
--> src/main.rs:6:9
|
2022-06-30 03:50:09 -05:00
|
|
|
|
|
2023-07-02 07:35:19 -05:00
|
|
|
6 | #![deny(clippy::use_self)]
|
2022-06-30 03:50:09 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
error: unnecessary structure name repetition
|
2023-07-02 07:35:19 -05:00
|
|
|
--> src/main.rs:12:9
|
2022-11-21 13:34:47 -06:00
|
|
|
|
|
2023-07-02 07:35:19 -05:00
|
|
|
12 | Foo
|
2022-11-21 13:34:47 -06:00
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
2023-07-02 07:35:19 -05:00
|
|
|
error: could not compile `fail-file-attr` (bin "fail-file-attr") due to 2 previous errors
|