Skip to content

Commit 0199a81

Browse files
committed
add tests
1 parent c6b6901 commit 0199a81

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// build-pass
2+
3+
#![feature(generic_const_exprs)]
4+
#![allow(unused_braces, incomplete_features)]
5+
6+
pub trait Foo<const N: usize> {}
7+
pub trait Bar: Foo<{ 1 }> { }
8+
9+
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// build-pass
2+
3+
#![feature(generic_const_exprs)]
4+
#![allow(unused_braces, incomplete_features)]
5+
6+
pub trait AnotherTrait{
7+
const ARRAY_SIZE: usize;
8+
}
9+
pub trait Shard<T: AnotherTrait>:
10+
AsMut<[[u8; T::ARRAY_SIZE]]>
11+
where
12+
[(); T::ARRAY_SIZE]: Sized
13+
{
14+
}
15+
16+
fn main() {}

0 commit comments

Comments
 (0)