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