2019-11-01 03:58:37 +00:00
|
|
|
error[E0071]: expected struct, variant or union type, found type parameter `Self`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/struct-path-self.rs:5:17
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | let s = Self {};
|
|
|
|
| ^^^^ not a struct
|
|
|
|
|
2022-06-01 23:55:30 +00:00
|
|
|
error[E0109]: type arguments are not allowed on self type
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/struct-path-self.rs:7:24
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | let z = Self::<u8> {};
|
2022-06-01 23:55:30 +00:00
|
|
|
| ---- ^^ type argument not allowed
|
|
|
|
| |
|
2022-06-20 00:54:19 +00:00
|
|
|
| not allowed on self type
|
2022-05-28 02:53:31 +00:00
|
|
|
|
|
|
|
|
help: the `Self` type doesn't accept type parameters
|
|
|
|
|
|
|
|
|
LL - let z = Self::<u8> {};
|
|
|
|
LL + let z = Self {};
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-11-01 03:58:37 +00:00
|
|
|
error[E0071]: expected struct, variant or union type, found type parameter `Self`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/struct-path-self.rs:7:17
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | let z = Self::<u8> {};
|
|
|
|
| ^^^^^^^^^^ not a struct
|
|
|
|
|
2019-11-01 03:58:37 +00:00
|
|
|
error[E0071]: expected struct, variant or union type, found type parameter `Self`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/struct-path-self.rs:11:13
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | Self { .. } => {}
|
|
|
|
| ^^^^ not a struct
|
|
|
|
|
2022-06-01 23:55:30 +00:00
|
|
|
error[E0109]: type arguments are not allowed on self type
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/struct-path-self.rs:20:24
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let z = Self::<u8> {};
|
2022-06-01 23:55:30 +00:00
|
|
|
| ---- ^^ type argument not allowed
|
|
|
|
| |
|
2022-06-20 00:54:19 +00:00
|
|
|
| not allowed on self type
|
2022-05-28 02:53:31 +00:00
|
|
|
|
|
2022-05-31 19:53:52 +00:00
|
|
|
note: `Self` is of type `S`
|
2022-05-28 02:53:31 +00:00
|
|
|
--> $DIR/struct-path-self.rs:1:8
|
|
|
|
|
|
|
|
|
LL | struct S;
|
2022-06-02 21:06:54 +00:00
|
|
|
| ^ `Self` corresponds to this type, which doesn't have generic parameters
|
2022-05-28 02:53:31 +00:00
|
|
|
...
|
|
|
|
LL | impl Tr for S {
|
2022-06-01 20:04:35 +00:00
|
|
|
| ------------- `Self` is on type `S` in this `impl`
|
2022-05-31 19:53:52 +00:00
|
|
|
help: the `Self` type doesn't accept type parameters
|
2022-05-28 02:53:31 +00:00
|
|
|
|
|
2022-05-31 19:53:52 +00:00
|
|
|
LL - let z = Self::<u8> {};
|
|
|
|
LL + let z = Self {};
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2022-06-01 23:55:30 +00:00
|
|
|
error[E0109]: type arguments are not allowed on self type
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/struct-path-self.rs:30:24
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let z = Self::<u8> {};
|
2022-06-01 23:55:30 +00:00
|
|
|
| ---- ^^ type argument not allowed
|
|
|
|
| |
|
2022-06-20 00:54:19 +00:00
|
|
|
| not allowed on self type
|
2022-05-28 02:53:31 +00:00
|
|
|
|
|
2022-05-31 19:53:52 +00:00
|
|
|
note: `Self` is of type `S`
|
2022-05-28 02:53:31 +00:00
|
|
|
--> $DIR/struct-path-self.rs:1:8
|
|
|
|
|
|
|
|
|
LL | struct S;
|
2022-06-02 21:06:54 +00:00
|
|
|
| ^ `Self` corresponds to this type, which doesn't have generic parameters
|
2022-05-28 02:53:31 +00:00
|
|
|
...
|
|
|
|
LL | impl S {
|
2022-06-01 20:04:35 +00:00
|
|
|
| ------ `Self` is on type `S` in this `impl`
|
2022-05-31 19:53:52 +00:00
|
|
|
help: the `Self` type doesn't accept type parameters
|
2022-05-28 02:53:31 +00:00
|
|
|
|
|
2022-05-31 19:53:52 +00:00
|
|
|
LL - let z = Self::<u8> {};
|
|
|
|
LL + let z = Self {};
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|
2019-04-17 17:26:38 +00:00
|
|
|
Some errors have detailed explanations: E0071, E0109.
|
2018-08-08 12:28:26 +00:00
|
|
|
For more information about an error, try `rustc --explain E0071`.
|