summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/ambiguous-inherent-assoc-ty.rs
blob: 94ea0e93bf6372e09ba9865a1261f4f83276c495 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// check-pass
// This test ensures that rustdoc does not panic on inherented associated types
// that are referred to without fully-qualified syntax.

#![feature(inherent_associated_types)]
#![allow(incomplete_features)]

pub struct Struct;

impl Struct {
    pub type AssocTy = usize;
    pub const AssocConst: Self::AssocTy = 42;
}