Skip to content

Commit e492886

Browse files
committed
Fix rustdoc tests
1 parent 086e5a1 commit e492886

File tree

3 files changed

+19
-16
lines changed

3 files changed

+19
-16
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//@ known-bug: #132980
2+
// Originally a rustdoc test. Should be moved back there with @has checks
3+
// readded once fixed.
4+
// Previous issue (before mgca): https://github.com/rust-lang/rust/issues/105952
5+
#![crate_name = "foo"]
6+
#![feature(associated_const_equality, min_generic_const_args)]
7+
pub enum ParseMode {
8+
Raw,
9+
}
10+
pub trait Parse {
11+
#[type_const]
12+
const PARSE_MODE: ParseMode;
13+
}
14+
pub trait RenderRaw {}
15+
16+
impl<T: Parse<PARSE_MODE = { ParseMode::Raw }>> RenderRaw for T {}

tests/rustdoc/constant/ice-associated-const-equality-105952.rs

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
#![feature(associated_const_equality)]
1+
#![expect(incomplete_features)]
2+
#![feature(associated_const_equality, min_generic_const_args)]
23

34
pub fn accept(_: impl Trait<K = 0>) {}
45

56
pub trait Trait {
7+
#[type_const]
68
const K: i32;
79
}

0 commit comments

Comments
 (0)