Skip to content

Commit

Permalink
add regression test for #74255
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr committed Jul 16, 2020
1 parent d187e81 commit 8faeb0e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/test/ui/const-generics/issues/issue-74255.rs
Original file line number Diff line number Diff line change
@@ -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}>();
}

0 comments on commit 8faeb0e

Please sign in to comment.