summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui-cargo/cargo_rust_version/fail_clippy/Cargo.stderr
blob: 83d4be3bae464f32bb22e5a065d20febed0fc010 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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