We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fc61fab + 79f3fe4 commit a1c7a1cCopy full SHA for a1c7a1c
tests/rustdoc-ui/issue-102467.rs
@@ -0,0 +1,15 @@
1
+// Regression test for <https://github.com/rust-lang/rust/issues/102467>.
2
+// It ensures that the expected error is displayed.
3
+
4
+#![feature(associated_const_equality)]
5
6
+trait T {
7
+ type A: S<C<X = 0i32> = 34>;
8
+ //~^ ERROR associated type bindings are not allowed here
9
+}
10
11
+trait S {
12
+ const C: i32;
13
14
15
+fn main() {}
tests/rustdoc-ui/issue-102467.stderr
@@ -0,0 +1,9 @@
+error[E0229]: associated type bindings are not allowed here
+ --> $DIR/issue-102467.rs:7:17
+ |
+LL | type A: S<C<X = 0i32> = 34>;
+ | ^^^^^^^^ associated type not allowed here
+error: aborting due to previous error
+For more information about this error, try `rustc --explain E0229`.
0 commit comments