Skip to content

Commit a1c7a1c

Browse files
committed
Auto merge of #116120 - GuillaumeGomez:regression-102467, r=compiler-errors
Add regression test for #102467 Fixes #102467. r? `@compiler-errors`
2 parents fc61fab + 79f3fe4 commit a1c7a1c

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

tests/rustdoc-ui/issue-102467.rs

+15
Original file line numberDiff line numberDiff line change
@@ -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

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0229]: associated type bindings are not allowed here
2+
--> $DIR/issue-102467.rs:7:17
3+
|
4+
LL | type A: S<C<X = 0i32> = 34>;
5+
| ^^^^^^^^ associated type not allowed here
6+
7+
error: aborting due to previous error
8+
9+
For more information about this error, try `rustc --explain E0229`.

0 commit comments

Comments
 (0)