]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/ambiguous-inherent-assoc-ty.rs
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[rust.git] / src / test / rustdoc-ui / ambiguous-inherent-assoc-ty.rs
1 // This test ensures that rustdoc does not panic on inherented associated types
2 // that are referred to without fully-qualified syntax.
3
4 #![feature(inherent_associated_types)]
5 #![allow(incomplete_features)]
6
7 pub struct Struct;
8
9 impl Struct {
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
16 }