mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 20:54:13 +00:00
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:14:21
|
|
|
|
|
14 | fn new() -> Foo {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
= note: `-D use-self` implied by `-D warnings`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:15:13
|
|
|
|
|
15 | Foo {}
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:17:22
|
|
|
|
|
17 | fn test() -> Foo {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:18:13
|
|
|
|
|
18 | Foo::new()
|
|
| ^^^^^^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:23:25
|
|
|
|
|
23 | fn default() -> Foo {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:24:13
|
|
|
|
|
24 | Foo::new()
|
|
| ^^^^^^^^ help: use the applicable keyword: `Self`
|
|
|