2017-08-18 17:42:26 +00:00
|
|
|
error: unnecessary structure name repetition
|
2018-07-17 06:20:49 +00:00
|
|
|
--> $DIR/use_self.rs:11:21
|
2017-07-28 11:28:07 +00:00
|
|
|
|
|
2018-07-17 06:20:49 +00:00
|
|
|
11 | 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
|
2018-07-17 06:20:49 +00:00
|
|
|
--> $DIR/use_self.rs:12:13
|
2017-07-28 11:28:07 +00:00
|
|
|
|
|
2018-07-17 06:20:49 +00:00
|
|
|
12 | 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
|
2018-07-17 06:20:49 +00:00
|
|
|
--> $DIR/use_self.rs:14:22
|
2017-07-28 11:28:07 +00:00
|
|
|
|
|
2018-07-17 06:20:49 +00:00
|
|
|
14 | 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
|
2018-07-17 06:20:49 +00:00
|
|
|
--> $DIR/use_self.rs:15:13
|
2017-07-28 11:28:07 +00:00
|
|
|
|
|
2018-07-17 06:20:49 +00:00
|
|
|
15 | 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
|
2018-07-17 06:20:49 +00:00
|
|
|
--> $DIR/use_self.rs:20:25
|
2017-07-28 11:28:07 +00:00
|
|
|
|
|
2018-07-17 06:20:49 +00:00
|
|
|
20 | 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
|
2018-07-17 06:20:49 +00:00
|
|
|
--> $DIR/use_self.rs:21:13
|
2017-07-28 11:28:07 +00:00
|
|
|
|
|
2018-07-17 06:20:49 +00:00
|
|
|
21 | Foo::new()
|
2017-08-18 17:42:26 +00:00
|
|
|
| ^^^^^^^^ help: use the applicable keyword: `Self`
|
2017-07-28 11:28:07 +00:00
|
|
|
|
2018-07-14 10:18:50 +00:00
|
|
|
error: unnecessary structure name repetition
|
2018-07-17 06:20:49 +00:00
|
|
|
--> $DIR/use_self.rs:84:22
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
2018-07-17 06:20:49 +00:00
|
|
|
84 | fn refs(p1: &Bad) -> &Bad {
|
2018-07-14 10:18:50 +00:00
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2018-07-17 06:20:49 +00:00
|
|
|
--> $DIR/use_self.rs:84:31
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
2018-07-17 06:20:49 +00:00
|
|
|
84 | fn refs(p1: &Bad) -> &Bad {
|
2018-07-14 10:18:50 +00:00
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2018-07-17 06:20:49 +00:00
|
|
|
--> $DIR/use_self.rs:88:37
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
2018-07-17 06:20:49 +00:00
|
|
|
88 | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
|
2018-07-14 10:18:50 +00:00
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2018-07-17 06:20:49 +00:00
|
|
|
--> $DIR/use_self.rs:88:53
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
2018-07-17 06:20:49 +00:00
|
|
|
88 | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
|
2018-07-14 10:18:50 +00:00
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2018-07-17 06:20:49 +00:00
|
|
|
--> $DIR/use_self.rs:92:30
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
2018-07-17 06:20:49 +00:00
|
|
|
92 | fn mut_refs(p1: &mut Bad) -> &mut Bad {
|
2018-07-14 10:18:50 +00:00
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2018-07-17 06:20:49 +00:00
|
|
|
--> $DIR/use_self.rs:92:43
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
2018-07-17 06:20:49 +00:00
|
|
|
92 | fn mut_refs(p1: &mut Bad) -> &mut Bad {
|
2018-07-14 10:18:50 +00:00
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2018-07-17 06:20:49 +00:00
|
|
|
--> $DIR/use_self.rs:96:28
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
2018-07-17 06:20:49 +00:00
|
|
|
96 | fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {
|
2018-07-14 10:18:50 +00:00
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2018-07-17 06:20:49 +00:00
|
|
|
--> $DIR/use_self.rs:96:46
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
2018-07-17 06:20:49 +00:00
|
|
|
96 | fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {
|
2018-07-14 10:18:50 +00:00
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2018-07-17 06:20:49 +00:00
|
|
|
--> $DIR/use_self.rs:99:20
|
|
|
|
|
|
|
|
|
99 | fn vals(_: Bad) -> Bad {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
|
|
|
--> $DIR/use_self.rs:99:28
|
|
|
|
|
|
|
|
|
99 | fn vals(_: Bad) -> Bad {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
|
|
|
--> $DIR/use_self.rs:100:13
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
2018-07-17 06:20:49 +00:00
|
|
|
100 | Bad::default()
|
|
|
|
| ^^^^^^^^^^^^ help: use the applicable keyword: `Self`
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2018-07-17 06:20:49 +00:00
|
|
|
--> $DIR/use_self.rs:105:23
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
2018-07-17 06:20:49 +00:00
|
|
|
105 | type Output = Bad;
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2018-07-17 06:20:49 +00:00
|
|
|
--> $DIR/use_self.rs:107:27
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
2018-07-17 06:20:49 +00:00
|
|
|
107 | fn mul(self, rhs: Bad) -> Bad {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
|
|
|
--> $DIR/use_self.rs:107:35
|
|
|
|
|
|
|
|
|
107 | fn mul(self, rhs: Bad) -> Bad {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
2018-07-14 10:18:50 +00:00
|
|
|
|
2018-07-17 06:20:49 +00:00
|
|
|
error: aborting due to 20 previous errors
|
2018-01-16 16:06:27 +00:00
|
|
|
|