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