2017-08-18 19:42:26 +02:00
|
|
|
error: unnecessary structure name repetition
|
2017-08-22 00:18:37 +02:00
|
|
|
--> $DIR/use_self.rs:14:21
|
2017-07-28 13:28:07 +02:00
|
|
|
|
|
2017-08-22 00:18:37 +02:00
|
|
|
14 | fn new() -> Foo {
|
2017-08-18 19:42:26 +02:00
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
2017-07-28 13:28:07 +02:00
|
|
|
|
|
|
|
|
= note: `-D use-self` implied by `-D warnings`
|
|
|
|
|
2017-08-18 19:42:26 +02:00
|
|
|
error: unnecessary structure name repetition
|
2017-08-22 00:18:37 +02:00
|
|
|
--> $DIR/use_self.rs:15:13
|
2017-07-28 13:28:07 +02:00
|
|
|
|
|
2017-08-22 00:18:37 +02:00
|
|
|
15 | Foo {}
|
2017-08-18 19:42:26 +02:00
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
2017-07-28 13:28:07 +02:00
|
|
|
|
2017-08-18 19:42:26 +02:00
|
|
|
error: unnecessary structure name repetition
|
2017-08-22 00:18:37 +02:00
|
|
|
--> $DIR/use_self.rs:17:22
|
2017-07-28 13:28:07 +02:00
|
|
|
|
|
2017-08-22 00:18:37 +02:00
|
|
|
17 | fn test() -> Foo {
|
2017-08-18 19:42:26 +02:00
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
2017-07-28 13:28:07 +02:00
|
|
|
|
2017-08-18 19:42:26 +02:00
|
|
|
error: unnecessary structure name repetition
|
2017-08-22 00:18:37 +02:00
|
|
|
--> $DIR/use_self.rs:18:13
|
2017-07-28 13:28:07 +02:00
|
|
|
|
|
2017-08-22 00:18:37 +02:00
|
|
|
18 | Foo::new()
|
2017-08-18 19:42:26 +02:00
|
|
|
| ^^^^^^^^ help: use the applicable keyword: `Self`
|
2017-07-28 13:28:07 +02:00
|
|
|
|
2017-08-18 19:42:26 +02:00
|
|
|
error: unnecessary structure name repetition
|
2017-08-22 00:18:37 +02:00
|
|
|
--> $DIR/use_self.rs:23:25
|
2017-07-28 13:28:07 +02:00
|
|
|
|
|
2017-08-22 00:18:37 +02:00
|
|
|
23 | fn default() -> Foo {
|
2017-08-18 19:42:26 +02:00
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
2017-07-28 13:28:07 +02:00
|
|
|
|
2017-08-18 19:42:26 +02:00
|
|
|
error: unnecessary structure name repetition
|
2017-08-22 00:18:37 +02:00
|
|
|
--> $DIR/use_self.rs:24:13
|
2017-07-28 13:28:07 +02:00
|
|
|
|
|
2017-08-22 00:18:37 +02:00
|
|
|
24 | Foo::new()
|
2017-08-18 19:42:26 +02:00
|
|
|
| ^^^^^^^^ help: use the applicable keyword: `Self`
|
2017-07-28 13:28:07 +02:00
|
|
|
|
2018-01-16 17:06:27 +01:00
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|