rust/src/test/ui/const-generics/issues/issue-74255.rs

19 lines
291 B
Rust
Raw Normal View History

2020-07-16 05:46:02 -05:00
// 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}>();
}