rust/tests/ui/use_self.stderr

41 lines
1.1 KiB
Plaintext
Raw Normal View History

error: unnecessary structure name repetition
2017-08-22 00:18:37 +02:00
--> $DIR/use_self.rs:14:21
|
2017-08-22 00:18:37 +02: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-22 00:18:37 +02:00
--> $DIR/use_self.rs:15:13
|
2017-08-22 00:18:37 +02:00
15 | Foo {}
| ^^^ help: use the applicable keyword: `Self`
error: unnecessary structure name repetition
2017-08-22 00:18:37 +02:00
--> $DIR/use_self.rs:17:22
|
2017-08-22 00:18:37 +02:00
17 | fn test() -> Foo {
| ^^^ help: use the applicable keyword: `Self`
error: unnecessary structure name repetition
2017-08-22 00:18:37 +02:00
--> $DIR/use_self.rs:18:13
|
2017-08-22 00:18:37 +02:00
18 | Foo::new()
| ^^^^^^^^ help: use the applicable keyword: `Self`
error: unnecessary structure name repetition
2017-08-22 00:18:37 +02:00
--> $DIR/use_self.rs:23:25
|
2017-08-22 00:18:37 +02:00
23 | fn default() -> Foo {
| ^^^ help: use the applicable keyword: `Self`
error: unnecessary structure name repetition
2017-08-22 00:18:37 +02:00
--> $DIR/use_self.rs:24:13
|
2017-08-22 00:18:37 +02:00
24 | Foo::new()
| ^^^^^^^^ help: use the applicable keyword: `Self`
2018-01-16 17:06:27 +01:00
error: aborting due to 6 previous errors