rust/src/test/ui/structs/struct-path-self.stderr

41 lines
1.4 KiB
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0071]: expected struct, variant or union type, found Self
--> $DIR/struct-path-self.rs:15:17
|
LL | let s = Self {};
| ^^^^ not a struct
error[E0109]: type parameters are not allowed on this type
--> $DIR/struct-path-self.rs:17:24
|
LL | let z = Self::<u8> {};
| ^^ type parameter not allowed
error[E0071]: expected struct, variant or union type, found Self
--> $DIR/struct-path-self.rs:17:17
|
LL | let z = Self::<u8> {};
| ^^^^^^^^^^ not a struct
error[E0071]: expected struct, variant or union type, found Self
--> $DIR/struct-path-self.rs:21:13
|
LL | Self { .. } => {}
| ^^^^ not a struct
error[E0109]: type parameters are not allowed on this type
--> $DIR/struct-path-self.rs:30:24
|
LL | let z = Self::<u8> {}; //~ ERROR type parameters are not allowed on this type
| ^^ type parameter not allowed
error[E0109]: type parameters are not allowed on this type
--> $DIR/struct-path-self.rs:40:24
|
LL | let z = Self::<u8> {}; //~ ERROR type parameters are not allowed on this type
| ^^ type parameter not allowed
error: aborting due to 6 previous errors
Some errors occurred: E0071, E0109.
For more information about an error, try `rustc --explain E0071`.