mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
add regression test for #74255
This commit is contained in:
@@ -0,0 +1,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}>();
|
||||
}
|
||||
Reference in New Issue
Block a user