2022-10-27 12:33:41 -05: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;
|
|
|
|
}
|