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