blob: 55ccf57dc99c303ac6bac109ec85d4541b8737f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// check-pass
#![feature(const_generics)]
#![allow(dead_code, incomplete_features)]
#[derive(PartialEq, Eq)]
enum IceEnum {
Variant
}
struct IceStruct;
impl IceStruct {
fn ice_struct_fn<const I: IceEnum>() {}
}
fn main() {
IceStruct::ice_struct_fn::<{IceEnum::Variant}>();
}
|