]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-ui/ambiguous-inherent-assoc-ty.rs
Rollup merge of #107706 - tgross35:atomic-as-mut-ptr, r=m-ou-se
[rust.git] / tests / 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 }