rust/tests/ui/use_self.stderr

39 lines
1.1 KiB
Plaintext
Raw Normal View History

error: unnecessary structure name repetition
2017-08-21 17:18:37 -05:00
--> $DIR/use_self.rs:14:21
|
2017-08-21 17:18:37 -05:00
14 | fn new() -> Foo {
| ^^^ help: use the applicable keyword: `Self`
|
= note: `-D use-self` implied by `-D warnings`
error: unnecessary structure name repetition
2017-08-21 17:18:37 -05:00
--> $DIR/use_self.rs:15:13
|
2017-08-21 17:18:37 -05:00
15 | Foo {}
| ^^^ help: use the applicable keyword: `Self`
error: unnecessary structure name repetition
2017-08-21 17:18:37 -05:00
--> $DIR/use_self.rs:17:22
|
2017-08-21 17:18:37 -05:00
17 | fn test() -> Foo {
| ^^^ help: use the applicable keyword: `Self`
error: unnecessary structure name repetition
2017-08-21 17:18:37 -05:00
--> $DIR/use_self.rs:18:13
|
2017-08-21 17:18:37 -05:00
18 | Foo::new()
| ^^^^^^^^ help: use the applicable keyword: `Self`
error: unnecessary structure name repetition
2017-08-21 17:18:37 -05:00
--> $DIR/use_self.rs:23:25
|
2017-08-21 17:18:37 -05:00
23 | fn default() -> Foo {
| ^^^ help: use the applicable keyword: `Self`
error: unnecessary structure name repetition
2017-08-21 17:18:37 -05:00
--> $DIR/use_self.rs:24:13
|
2017-08-21 17:18:37 -05:00
24 | Foo::new()
| ^^^^^^^^ help: use the applicable keyword: `Self`