rustdoc: move ICE test to rustdoc-ui
This commit is contained in:
parent
43b493ebc0
commit
94b39e8c86
1 changed files with 0 additions and 0 deletions
14
tests/rustdoc-ui/ice-assoc-const-for-primitive-31808.rs
Normal file
14
tests/rustdoc-ui/ice-assoc-const-for-primitive-31808.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
// 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue