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