2024-02-22 06:10:29 -06:00
|
|
|
//@ check-pass
|
2021-09-01 16:59:07 -05:00
|
|
|
// This test ensures that rustdoc does not panic on inherented associated types
|
|
|
|
// that are referred to without fully-qualified syntax.
|
|
|
|
|
|
|
|
#![feature(inherent_associated_types)]
|
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
|
|
|
pub struct Struct;
|
|
|
|
|
|
|
|
impl Struct {
|
|
|
|
pub type AssocTy = usize;
|
|
|
|
pub const AssocConst: Self::AssocTy = 42;
|
|
|
|
}
|