]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/issue-31808.rs
Merge commit '1d8491b120223272b13451fc81265aa64f7f4d5b' into sync-from-rustfmt
[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 }