Skip to content

Commit 39a5e93

Browse files
committed
Make the test case to be actually supported under adt_const_params
1 parent a8cde85 commit 39a5e93

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
struct Foo<const N: [u8]>;
1+
#![feature(adt_const_params)]
2+
3+
struct Bar(u8);
4+
5+
struct Foo<const N: Bar>;
26
//~^ ERROR: `[u8]` is forbidden as the type of a const generic parameter
37

48
fn main() {}

0 commit comments

Comments
 (0)