Skip to content

Commit ca20d64

Browse files
committed
Enable ignored part of test
Inherent associated types *are* supported, just unstable.
1 parent e18b23b commit ca20d64

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/test/rustdoc/intra-doc/prim-self.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#![deny(rustdoc::broken_intra_doc_links)]
2+
#![allow(incomplete_features)] // inherent_associated_types
23
#![feature(lang_items)]
34
#![feature(no_core)]
45
#![feature(rustdoc_internals)]
6+
#![feature(inherent_associated_types)]
57
#![no_core]
68

79
#[lang = "usize"]
@@ -17,10 +19,9 @@ impl usize {
1719
/// 10 and 2^32 are basically the same.
1820
pub const MAX: usize = 10;
1921

20-
// FIXME(#8995) uncomment this when associated types in inherent impls are supported
21-
// @ has - '//a[@href="{{channel}}/std/primitive.usize.html#associatedtype.ME"]' 'Self::ME'
22-
// / [Self::ME]
23-
//pub type ME = usize;
22+
// @has - '//a[@href="primitive.usize.html#associatedtype.ME"]' 'Self::ME'
23+
/// [Self::ME]
24+
pub type ME = usize;
2425
}
2526

2627
#[doc(primitive = "usize")]

0 commit comments

Comments
 (0)