]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc-ui/ambiguous-inherent-assoc-ty.rs
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / rustdoc-ui / ambiguous-inherent-assoc-ty.rs
CommitLineData
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
7pub struct Struct;
8
9impl 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}