rust-clippy/tests/ui/use_self.stderr

125 lines
4 KiB
Text
Raw Normal View History

error: unnecessary structure name repetition
--> $DIR/use_self.rs:13:21
|
13 | fn new() -> Foo {
| ^^^ help: use the applicable keyword: `Self`
|
= note: `-D clippy::use-self` implied by `-D warnings`
error: unnecessary structure name repetition
--> $DIR/use_self.rs:14:13
|
14 | Foo {}
| ^^^ help: use the applicable keyword: `Self`
error: unnecessary structure name repetition
--> $DIR/use_self.rs:16:22
|
16 | fn test() -> Foo {
| ^^^ help: use the applicable keyword: `Self`
error: unnecessary structure name repetition
--> $DIR/use_self.rs:17:13
|
17 | Foo::new()
| ^^^^^^^^ help: use the applicable keyword: `Self`
error: unnecessary structure name repetition
--> $DIR/use_self.rs:22:25
|
22 | fn default() -> Foo {
| ^^^ help: use the applicable keyword: `Self`
error: unnecessary structure name repetition
--> $DIR/use_self.rs:23:13
|
23 | Foo::new()
| ^^^^^^^^ help: use the applicable keyword: `Self`
2018-07-14 10:18:50 +00:00
error: unnecessary structure name repetition
--> $DIR/use_self.rs:86:22
2018-07-14 10:18:50 +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
--> $DIR/use_self.rs:86:31
2018-07-14 10:18:50 +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
--> $DIR/use_self.rs:90:37
2018-07-14 10:18:50 +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
--> $DIR/use_self.rs:90:53
2018-07-14 10:18:50 +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
--> $DIR/use_self.rs:94:30
2018-07-14 10:18:50 +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
--> $DIR/use_self.rs:94:43
2018-07-14 10:18:50 +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
--> $DIR/use_self.rs:98:28
2018-07-14 10:18:50 +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
--> $DIR/use_self.rs:98:46
2018-07-14 10:18:50 +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
--> $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
--> $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
--> $DIR/use_self.rs:102:13
2018-07-14 10:18:50 +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
--> $DIR/use_self.rs:107:23
2018-07-14 10:18:50 +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
--> $DIR/use_self.rs:109:27
2018-07-14 10:18:50 +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
--> $DIR/use_self.rs:109:35
2018-07-17 06:20:49 +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