2016-12-01 01:35:25 +03:00
|
|
|
error[E0423]: expected function, found self type `Self`
|
|
|
|
--> $DIR/tuple-struct-alias.rs:16:17
|
|
|
|
|
|
|
|
|
16 | let s = Self(0, 1);
|
|
|
|
| ^^^^ did you mean `Self { /* fields */ }`?
|
|
|
|
|
|
|
|
error[E0532]: expected tuple struct/variant, found self type `Self`
|
|
|
|
--> $DIR/tuple-struct-alias.rs:18:13
|
|
|
|
|
|
|
|
|
18 | Self(..) => {}
|
|
|
|
| ^^^^ did you mean `Self { /* fields */ }`?
|
|
|
|
|
|
|
|
error[E0423]: expected function, found type alias `A`
|
|
|
|
--> $DIR/tuple-struct-alias.rs:24:13
|
|
|
|
|
|
|
|
|
24 | let s = A(0, 1);
|
2017-04-18 13:28:05 +02:00
|
|
|
| ^
|
|
|
|
| |
|
|
|
|
| did you mean `S`?
|
|
|
|
| did you mean `A { /* fields */ }`?
|
2016-12-01 01:35:25 +03:00
|
|
|
|
|
|
|
error[E0532]: expected tuple struct/variant, found type alias `A`
|
|
|
|
--> $DIR/tuple-struct-alias.rs:26:9
|
|
|
|
|
|
|
|
|
26 | A(..) => {}
|
2017-04-18 13:28:05 +02:00
|
|
|
| ^
|
|
|
|
| |
|
|
|
|
| did you mean `S`?
|
|
|
|
| did you mean `A { /* fields */ }`?
|
2016-12-01 01:35:25 +03:00
|
|
|
|
2017-05-22 18:46:05 +07:00
|
|
|
error: aborting due to previous error(s)
|
2016-12-01 01:35:25 +03:00
|
|
|
|