summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/issue-31808.rs
blob: e55c5bd4f7cee4826718963811281678ea45191a (plain)
1
2
3
4
5
6
7
8
9
10
11
// Test that associated item impls on primitive types don't crash rustdoc

pub trait Foo {
    const BAR: usize;
    type BAZ;
}

impl Foo for () {
    const BAR: usize = 0;
    type BAZ = usize;
}