1 // This test ensures that rustdoc does not panic on inherented associated types
2 // that are referred to without fully-qualified syntax.
4 #![feature(inherent_associated_types)]
5 #![allow(incomplete_features)]
10 pub type AssocTy = usize;
11 pub const AssocConst: Self::AssocTy = 42;
12 //~^ ERROR ambiguous associated type
13 //~| HELP use fully-qualified syntax
14 //~| ERROR ambiguous associated type
15 //~| HELP use fully-qualified syntax