Fix typo
This commit is contained in:
parent
3d60691996
commit
196a30ebff
@ -2417,7 +2417,7 @@ pub fn res_to_ty(
|
||||
let mut span: MultiSpan = vec![t_sp].into();
|
||||
span.push_span_label(
|
||||
i_sp,
|
||||
&format!("`Self` is or type `{type_name}` in this `impl`"),
|
||||
&format!("`Self` is on type `{type_name}` in this `impl`"),
|
||||
);
|
||||
let mut postfix = "";
|
||||
if generics == 0 {
|
||||
|
@ -41,7 +41,7 @@ LL | struct S;
|
||||
| ^ `Self` corresponds to this type, which doesn't have type parameters
|
||||
...
|
||||
LL | impl Tr for S {
|
||||
| ------------- `Self` is or type `S` in this `impl`
|
||||
| ------------- `Self` is on type `S` in this `impl`
|
||||
help: the `Self` type doesn't accept type parameters
|
||||
|
|
||||
LL - let z = Self::<u8> {};
|
||||
@ -61,7 +61,7 @@ LL | struct S;
|
||||
| ^ `Self` corresponds to this type, which doesn't have type parameters
|
||||
...
|
||||
LL | impl S {
|
||||
| ------ `Self` is or type `S` in this `impl`
|
||||
| ------ `Self` is on type `S` in this `impl`
|
||||
help: the `Self` type doesn't accept type parameters
|
||||
|
|
||||
LL - let z = Self::<u8> {};
|
||||
|
@ -36,7 +36,7 @@ LL | enum Enum<T> { TSVariant(T), SVariant { v: T }, UVariant }
|
||||
| ^^^^ `Self` corresponds to this type
|
||||
...
|
||||
LL | impl<T> Enum<T> {
|
||||
| --------------- `Self` is or type `Enum` in this `impl`
|
||||
| --------------- `Self` is on type `Enum` in this `impl`
|
||||
help: the `Self` type doesn't accept type parameters, use the concrete type's name `Enum` instead if you want to specify its type parameters
|
||||
|
|
||||
LL | Enum::<()>::TSVariant(());
|
||||
@ -74,7 +74,7 @@ LL | enum Enum<T> { TSVariant(T), SVariant { v: T }, UVariant }
|
||||
| ^^^^ `Self` corresponds to this type
|
||||
...
|
||||
LL | impl<T> Enum<T> {
|
||||
| --------------- `Self` is or type `Enum` in this `impl`
|
||||
| --------------- `Self` is on type `Enum` in this `impl`
|
||||
help: the `Self` type doesn't accept type parameters, use the concrete type's name `Enum` instead if you want to specify its type parameters
|
||||
|
|
||||
LL | Enum::<()>::TSVariant::<()>(());
|
||||
@ -136,7 +136,7 @@ LL | enum Enum<T> { TSVariant(T), SVariant { v: T }, UVariant }
|
||||
| ^^^^ `Self` corresponds to this type
|
||||
...
|
||||
LL | impl<T> Enum<T> {
|
||||
| --------------- `Self` is or type `Enum` in this `impl`
|
||||
| --------------- `Self` is on type `Enum` in this `impl`
|
||||
help: the `Self` type doesn't accept type parameters, use the concrete type's name `Enum` instead if you want to specify its type parameters
|
||||
|
|
||||
LL | Enum::<()>::SVariant { v: () };
|
||||
@ -167,7 +167,7 @@ LL | enum Enum<T> { TSVariant(T), SVariant { v: T }, UVariant }
|
||||
| ^^^^ `Self` corresponds to this type
|
||||
...
|
||||
LL | impl<T> Enum<T> {
|
||||
| --------------- `Self` is or type `Enum` in this `impl`
|
||||
| --------------- `Self` is on type `Enum` in this `impl`
|
||||
help: the `Self` type doesn't accept type parameters, use the concrete type's name `Enum` instead if you want to specify its type parameters
|
||||
|
|
||||
LL | Enum::<()>::SVariant::<()> { v: () };
|
||||
@ -217,7 +217,7 @@ LL | enum Enum<T> { TSVariant(T), SVariant { v: T }, UVariant }
|
||||
| ^^^^ `Self` corresponds to this type
|
||||
...
|
||||
LL | impl<T> Enum<T> {
|
||||
| --------------- `Self` is or type `Enum` in this `impl`
|
||||
| --------------- `Self` is on type `Enum` in this `impl`
|
||||
help: the `Self` type doesn't accept type parameters, use the concrete type's name `Enum` instead if you want to specify its type parameters
|
||||
|
|
||||
LL | Enum::<()>::UVariant;
|
||||
@ -236,7 +236,7 @@ LL | enum Enum<T> { TSVariant(T), SVariant { v: T }, UVariant }
|
||||
| ^^^^ `Self` corresponds to this type
|
||||
...
|
||||
LL | impl<T> Enum<T> {
|
||||
| --------------- `Self` is or type `Enum` in this `impl`
|
||||
| --------------- `Self` is on type `Enum` in this `impl`
|
||||
help: the `Self` type doesn't accept type parameters, use the concrete type's name `Enum` instead if you want to specify its type parameters
|
||||
|
|
||||
LL | Enum::<()>::UVariant::<()>;
|
||||
|
Loading…
Reference in New Issue
Block a user