Skip to content

Commit 8b89c32

Browse files
authored
Rollup merge of #87266 - hellow554:issue87076, r=Mark-Simulacrum
Add testcase for 87076 Closes #87076 I also moved the issue tests into the issues subfolder, nothing changed there.
2 parents 1a2b90b + 05217d5 commit 8b89c32

32 files changed

+20
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// build-pass
2+
3+
#![feature(const_generics)]
4+
#![allow(incomplete_features)]
5+
6+
#[derive(PartialEq, Eq)]
7+
pub struct UnitDims {
8+
pub time: u8,
9+
pub length: u8,
10+
}
11+
12+
pub struct UnitValue<const DIMS: UnitDims>;
13+
14+
impl<const DIMS: UnitDims> UnitValue<DIMS> {
15+
fn crash() {}
16+
}
17+
18+
fn main() {
19+
UnitValue::<{ UnitDims { time: 1, length: 2 } }>::crash();
20+
}

0 commit comments

Comments
 (0)