]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/use_self.stderr
New upstream version 1.23.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / use_self.stderr
1 error: unnecessary structure name repetition
2 --> $DIR/use_self.rs:14:21
3 |
4 14 | fn new() -> Foo {
5 | ^^^ help: use the applicable keyword: `Self`
6 |
7 = note: `-D use-self` implied by `-D warnings`
8
9 error: unnecessary structure name repetition
10 --> $DIR/use_self.rs:15:13
11 |
12 15 | Foo {}
13 | ^^^ help: use the applicable keyword: `Self`
14
15 error: unnecessary structure name repetition
16 --> $DIR/use_self.rs:17:22
17 |
18 17 | fn test() -> Foo {
19 | ^^^ help: use the applicable keyword: `Self`
20
21 error: unnecessary structure name repetition
22 --> $DIR/use_self.rs:18:13
23 |
24 18 | Foo::new()
25 | ^^^^^^^^ help: use the applicable keyword: `Self`
26
27 error: unnecessary structure name repetition
28 --> $DIR/use_self.rs:23:25
29 |
30 23 | fn default() -> Foo {
31 | ^^^ help: use the applicable keyword: `Self`
32
33 error: unnecessary structure name repetition
34 --> $DIR/use_self.rs:24:13
35 |
36 24 | Foo::new()
37 | ^^^^^^^^ help: use the applicable keyword: `Self`
38