Skip to content

Commit 8faeb0e

Browse files
committed
add regression test for #74255
1 parent d187e81 commit 8faeb0e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// check-pass
2+
#![feature(const_generics)]
3+
#![allow(dead_code, incomplete_features)]
4+
5+
#[derive(PartialEq, Eq)]
6+
enum IceEnum {
7+
Variant
8+
}
9+
10+
struct IceStruct;
11+
12+
impl IceStruct {
13+
fn ice_struct_fn<const I: IceEnum>() {}
14+
}
15+
16+
fn main() {
17+
IceStruct::ice_struct_fn::<{IceEnum::Variant}>();
18+
}

0 commit comments

Comments
 (0)