]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/ambiguous-inherent-assoc-ty.rs
Auto merge of #92686 - saethlin:unsafe-debug-asserts, r=Amanieu
[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 }