2017-08-18 17:42:26 +00:00
|
|
|
error: unnecessary structure name repetition
|
2018-08-01 14:30:44 +00:00
|
|
|
--> $DIR/use_self.rs:13:21
|
2017-07-28 11:28:07 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
13 | 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
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
= note: `-D clippy::use-self` implied by `-D warnings`
|
2017-07-28 11:28:07 +00:00
|
|
|
|
2017-08-18 17:42:26 +00:00
|
|
|
error: unnecessary structure name repetition
|
2018-08-01 14:30:44 +00:00
|
|
|
--> $DIR/use_self.rs:14:13
|
2017-07-28 11:28:07 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
14 | 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-08-01 14:30:44 +00:00
|
|
|
--> $DIR/use_self.rs:16:22
|
2017-07-28 11:28:07 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
16 | 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-08-01 14:30:44 +00:00
|
|
|
--> $DIR/use_self.rs:17:13
|
2017-07-28 11:28:07 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
17 | 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-08-01 14:30:44 +00:00
|
|
|
--> $DIR/use_self.rs:22:25
|
2017-07-28 11:28:07 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
22 | 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-08-01 14:30:44 +00:00
|
|
|
--> $DIR/use_self.rs:23:13
|
2017-07-28 11:28:07 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
23 | 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-08-01 14:30:44 +00:00
|
|
|
--> $DIR/use_self.rs:86:22
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
86 | 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-08-01 14:30:44 +00:00
|
|
|
--> $DIR/use_self.rs:86:31
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
86 | 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-08-01 14:30:44 +00:00
|
|
|
--> $DIR/use_self.rs:90:37
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
90 | 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-08-01 14:30:44 +00:00
|
|
|
--> $DIR/use_self.rs:90:53
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
90 | 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-08-01 14:30:44 +00:00
|
|
|
--> $DIR/use_self.rs:94:30
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
94 | 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-08-01 14:30:44 +00:00
|
|
|
--> $DIR/use_self.rs:94:43
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
94 | 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-08-01 14:30:44 +00:00
|
|
|
--> $DIR/use_self.rs:98:28
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
98 | 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-08-01 14:30:44 +00:00
|
|
|
--> $DIR/use_self.rs:98:46
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
98 | 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-08-01 14:30:44 +00:00
|
|
|
--> $DIR/use_self.rs:101:20
|
|
|
|
|
|
|
|
|
101 | fn vals(_: Bad) -> Bad {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
2018-07-17 06:20:49 +00:00
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2018-08-01 14:30:44 +00:00
|
|
|
--> $DIR/use_self.rs:101:28
|
|
|
|
|
|
|
|
|
101 | fn vals(_: Bad) -> Bad {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
2018-07-17 06:20:49 +00:00
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2018-08-01 14:30:44 +00:00
|
|
|
--> $DIR/use_self.rs:102:13
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
102 | Bad::default()
|
2018-07-17 06:20:49 +00:00
|
|
|
| ^^^^^^^^^^^^ help: use the applicable keyword: `Self`
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2018-08-01 14:30:44 +00:00
|
|
|
--> $DIR/use_self.rs:107:23
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
107 | type Output = Bad;
|
2018-07-17 06:20:49 +00:00
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2018-08-01 14:30:44 +00:00
|
|
|
--> $DIR/use_self.rs:109:27
|
2018-07-14 10:18:50 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
109 | fn mul(self, rhs: Bad) -> Bad {
|
2018-07-17 06:20:49 +00:00
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2018-08-01 14:30:44 +00:00
|
|
|
--> $DIR/use_self.rs:109:35
|
2018-07-17 06:20:49 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
109 | fn mul(self, rhs: Bad) -> Bad {
|
2018-07-17 06:20:49 +00:00
|
|
|
| ^^^ 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
|
|
|
|