Skip to content

Commit b6f2207

Browse files
committed
Fix rustdoc UI tests
Also removed a test that was literally a duplicate of the one I kept.
1 parent e492886 commit b6f2207

File tree

4 files changed

+5
-42
lines changed

4 files changed

+5
-42
lines changed

tests/rustdoc-ui/associated-constant-not-allowed-102467.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Regression test for <https://github.com/rust-lang/rust/issues/102467>.
22
// It ensures that the expected error is displayed.
33

4-
#![feature(associated_const_equality)]
4+
#![expect(incomplete_features)]
5+
#![feature(associated_const_equality, min_generic_const_args)]
56

67
trait T {
78
type A: S<C<X = 0i32> = 34>;
@@ -10,6 +11,7 @@ trait T {
1011
}
1112

1213
trait S {
14+
#[type_const]
1315
const C: i32;
1416
}
1517

tests/rustdoc-ui/associated-constant-not-allowed-102467.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0229]: associated item constraints are not allowed here
2-
--> $DIR/associated-constant-not-allowed-102467.rs:7:17
2+
--> $DIR/associated-constant-not-allowed-102467.rs:8:17
33
|
44
LL | type A: S<C<X = 0i32> = 34>;
55
| ^^^^^^^^ associated item constraint not allowed here
@@ -11,7 +11,7 @@ LL + type A: S<C = 34>;
1111
|
1212

1313
error[E0229]: associated item constraints are not allowed here
14-
--> $DIR/associated-constant-not-allowed-102467.rs:7:17
14+
--> $DIR/associated-constant-not-allowed-102467.rs:8:17
1515
|
1616
LL | type A: S<C<X = 0i32> = 34>;
1717
| ^^^^^^^^ associated item constraint not allowed here

tests/rustdoc-ui/invalid_associated_const.rs

Lines changed: 0 additions & 11 deletions
This file was deleted.

tests/rustdoc-ui/invalid_associated_const.stderr

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)