2017-08-18 19:42:26 +02:00
|
|
|
error: unnecessary structure name repetition
|
2018-07-14 12:18:50 +02:00
|
|
|
--> $DIR/use_self.rs:15:21
|
2017-07-28 13:28:07 +02:00
|
|
|
|
|
2018-07-14 12:18:50 +02:00
|
|
|
15 | 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
|
2018-07-14 12:18:50 +02:00
|
|
|
--> $DIR/use_self.rs:16:13
|
2017-07-28 13:28:07 +02:00
|
|
|
|
|
2018-07-14 12:18:50 +02:00
|
|
|
16 | 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
|
2018-07-14 12:18:50 +02:00
|
|
|
--> $DIR/use_self.rs:18:22
|
2017-07-28 13:28:07 +02:00
|
|
|
|
|
2018-07-14 12:18:50 +02:00
|
|
|
18 | 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
|
2018-07-14 12:18:50 +02:00
|
|
|
--> $DIR/use_self.rs:19:13
|
2017-07-28 13:28:07 +02:00
|
|
|
|
|
2018-07-14 12:18:50 +02:00
|
|
|
19 | 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
|
2018-07-14 12:18:50 +02:00
|
|
|
--> $DIR/use_self.rs:24:25
|
2017-07-28 13:28:07 +02:00
|
|
|
|
|
2018-07-14 12:18:50 +02:00
|
|
|
24 | 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
|
2018-07-14 12:18:50 +02:00
|
|
|
--> $DIR/use_self.rs:25:13
|
2017-07-28 13:28:07 +02:00
|
|
|
|
|
2018-07-14 12:18:50 +02:00
|
|
|
25 | 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-07-14 12:18:50 +02:00
|
|
|
error: unnecessary structure name repetition
|
|
|
|
--> $DIR/use_self.rs:87:22
|
|
|
|
|
|
|
|
|
87 | fn refs(p1: &Bad) -> &Bad {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
|
|
|
--> $DIR/use_self.rs:87:31
|
|
|
|
|
|
|
|
|
87 | fn refs(p1: &Bad) -> &Bad {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
|
|
|
--> $DIR/use_self.rs:91:37
|
|
|
|
|
|
|
|
|
91 | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
|
|
|
--> $DIR/use_self.rs:91:53
|
|
|
|
|
|
|
|
|
91 | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
|
|
|
--> $DIR/use_self.rs:95:30
|
|
|
|
|
|
|
|
|
95 | fn mut_refs(p1: &mut Bad) -> &mut Bad {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
|
|
|
--> $DIR/use_self.rs:95:43
|
|
|
|
|
|
|
|
|
95 | fn mut_refs(p1: &mut Bad) -> &mut Bad {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
|
|
|
--> $DIR/use_self.rs:99:28
|
|
|
|
|
|
|
|
|
99 | fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
|
|
|
--> $DIR/use_self.rs:99:46
|
|
|
|
|
|
|
|
|
99 | fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
|
|
|
--> $DIR/use_self.rs:102:20
|
|
|
|
|
|
|
|
|
102 | fn vals(_: Bad) -> Bad {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
|
|
|
--> $DIR/use_self.rs:102:28
|
|
|
|
|
|
|
|
|
102 | fn vals(_: Bad) -> Bad {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
|
|
|
--> $DIR/use_self.rs:103:13
|
|
|
|
|
|
|
|
|
103 | Bad::default()
|
|
|
|
| ^^^^^^^^^^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: aborting due to 17 previous errors
|
2018-01-16 17:06:27 +01:00
|
|
|
|