]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/ambiguous-inherent-assoc-ty.rs
Auto merge of #99918 - WaffleLapkin:fnFnfun, r=estebank
[rust.git] / src / test / rustdoc-ui / ambiguous-inherent-assoc-ty.rs
1 // check-pass
2 // This test ensures that rustdoc does not panic on inherented associated types
3 // that are referred to without fully-qualified syntax.
4
5 #![feature(inherent_associated_types)]
6 #![allow(incomplete_features)]
7
8 pub struct Struct;
9
10 impl Struct {
11     pub type AssocTy = usize;
12     pub const AssocConst: Self::AssocTy = 42;
13 }