Skip to content

Commit 48603b6

Browse files
committed
Add 93882
Issue: rust-lang/rust#93882
1 parent f35bd8d commit 48603b6

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

ices/93882.sh

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
cat > out.rs <<'EOF'
4+
#![feature(generic_const_exprs)]
5+
pub trait Const {
6+
const N: usize;
7+
}
8+
pub trait Arr<T>: Const {
9+
type Arr;
10+
}
11+
impl<T, C: Const> Arr<T> for C
12+
where
13+
[T; C::N]:,
14+
{
15+
type Arr = [T; C::N];
16+
}
17+
EOF
18+
19+
rustdoc --edition=2021 out.rs

0 commit comments

Comments
 (0)