rust/tests/ui/use_self.stderr

107 lines
3.4 KiB
Plaintext
Raw Normal View History

error: unnecessary structure name repetition
2018-07-14 12:18:50 +02:00
--> $DIR/use_self.rs:15:21
|
2018-07-14 12:18:50 +02:00
15 | fn new() -> Foo {
| ^^^ help: use the applicable keyword: `Self`
|
= note: `-D use-self` implied by `-D warnings`
error: unnecessary structure name repetition
2018-07-14 12:18:50 +02:00
--> $DIR/use_self.rs:16:13
|
2018-07-14 12:18:50 +02:00
16 | Foo {}
| ^^^ help: use the applicable keyword: `Self`
error: unnecessary structure name repetition
2018-07-14 12:18:50 +02:00
--> $DIR/use_self.rs:18:22
|
2018-07-14 12:18:50 +02:00
18 | fn test() -> Foo {
| ^^^ help: use the applicable keyword: `Self`
error: unnecessary structure name repetition
2018-07-14 12:18:50 +02:00
--> $DIR/use_self.rs:19:13
|
2018-07-14 12:18:50 +02:00
19 | Foo::new()
| ^^^^^^^^ help: use the applicable keyword: `Self`
error: unnecessary structure name repetition
2018-07-14 12:18:50 +02:00
--> $DIR/use_self.rs:24:25
|
2018-07-14 12:18:50 +02:00
24 | fn default() -> Foo {
| ^^^ help: use the applicable keyword: `Self`
error: unnecessary structure name repetition
2018-07-14 12:18:50 +02:00
--> $DIR/use_self.rs:25:13
|
2018-07-14 12:18:50 +02:00
25 | Foo::new()
| ^^^^^^^^ help: use the applicable keyword: `Self`
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