about summary refs log tree commit diff
path: root/tests/rustdoc-ui/ice-assoc-const-for-primitive-31808.rs
blob: 2c1c666b22c28ddbe34be5a0281117772000a4ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ check-pass

// Test that associated item impls on primitive types don't crash rustdoc

// https://github.com/rust-lang/rust/issues/31808
#![crate_name="issue_31808"]

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

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