]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/issue-31808.rs
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[rust.git] / src / test / 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 }