2018-08-08 07:28:26 -05:00
|
|
|
error[E0071]: expected struct, variant or union type, found Self
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/struct-path-self.rs:5:17
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | let s = Self {};
|
|
|
|
| ^^^^ not a struct
|
|
|
|
|
2018-12-17 18:40:22 -06:00
|
|
|
error[E0109]: type arguments are not allowed on this entity
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/struct-path-self.rs:7:24
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | let z = Self::<u8> {};
|
2018-12-17 18:40:22 -06:00
|
|
|
| ^^ type argument not allowed
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0071]: expected struct, variant or union type, found Self
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/struct-path-self.rs:7:17
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | let z = Self::<u8> {};
|
|
|
|
| ^^^^^^^^^^ not a struct
|
|
|
|
|
|
|
|
error[E0071]: expected struct, variant or union type, found Self
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/struct-path-self.rs:11:13
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | Self { .. } => {}
|
|
|
|
| ^^^^ not a struct
|
|
|
|
|
2018-12-17 18:40:22 -06:00
|
|
|
error[E0109]: type arguments are not allowed on this entity
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/struct-path-self.rs:20:24
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2018-12-17 18:40:22 -06:00
|
|
|
LL | let z = Self::<u8> {}; //~ ERROR type arguments are not allowed on this entity
|
|
|
|
| ^^ type argument not allowed
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2018-12-17 18:40:22 -06:00
|
|
|
error[E0109]: type arguments are not allowed on this entity
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/struct-path-self.rs:30:24
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2018-12-17 18:40:22 -06:00
|
|
|
LL | let z = Self::<u8> {}; //~ ERROR type arguments are not allowed on this entity
|
|
|
|
| ^^ type argument not allowed
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|
|
|
|
Some errors occurred: E0071, E0109.
|
|
|
|
For more information about an error, try `rustc --explain E0071`.
|