]>
Commit | Line | Data |
---|---|---|
94222f64 XL |
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 | // FIXME: for some reason, the error is shown twice with rustdoc but only once with rustc | |
15 | //~| ERROR ambiguous associated type | |
16 | //~| HELP use fully-qualified syntax | |
17 | } |