2023-10-16 20:03:22 -05:00
|
|
|
//@ check-pass
|
|
|
|
|
2016-02-23 02:52:44 -06:00
|
|
|
// Test that associated item impls on primitive types don't crash rustdoc
|
|
|
|
|
2023-10-16 18:12:17 -05:00
|
|
|
// https://github.com/rust-lang/rust/issues/31808
|
2023-10-16 17:41:04 -05:00
|
|
|
#![crate_name="issue_31808"]
|
|
|
|
|
2016-02-23 02:52:44 -06:00
|
|
|
pub trait Foo {
|
|
|
|
const BAR: usize;
|
|
|
|
type BAZ;
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Foo for () {
|
|
|
|
const BAR: usize = 0;
|
|
|
|
type BAZ = usize;
|
|
|
|
}
|