mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
14 lines
335 B
Rust
14 lines
335 B
Rust
//@ check-pass
|
|
// 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;
|
|
}
|