]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/issue-31808.rs
Rollup merge of #96763 - Abdur-rahmaanJ:patch-1, r=Mark-Simulacrum
[rust.git] / tests / rustdoc / issue-31808.rs
1 // Test that associated item impls on primitive types don't crash rustdoc
2
3 pub trait Foo {
4     const BAR: usize;
5     type BAZ;
6 }
7
8 impl Foo for () {
9     const BAR: usize = 0;
10     type BAZ = usize;
11 }