We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1c228d1 + 714c276 commit 724da5cCopy full SHA for 724da5c
tests/ui/generics/issue-79605.rs
@@ -0,0 +1,6 @@
1
+struct X<'a, T>(&'a T);
2
+
3
+impl X<'_, _> {}
4
+//~^ ERROR the placeholder `_` is not allowed within types on item signatures for implementations
5
6
+fn main() {}
tests/ui/generics/issue-79605.stderr
@@ -0,0 +1,14 @@
+error[E0121]: the placeholder `_` is not allowed within types on item signatures for implementations
+ --> $DIR/issue-79605.rs:3:12
+ |
+LL | impl X<'_, _> {}
+ | ^ not allowed in type signatures
7
+help: use type parameters instead
8
9
+LL | impl<T> X<'_, T> {}
10
+ | +++ ~
11
12
+error: aborting due to previous error
13
14
+For more information about this error, try `rustc --explain E0121`.
0 commit comments