]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/issue-31808.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[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 }