Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit b5fe042

Browse files
committed
Use original ICE for 86535
Closes #901 The previous version had a separate issue opened for it which was resolved (rust-lang/rust#87935)
1 parent 550fc13 commit b5fe042

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

ices/86535.rs

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1-
#![feature(box_syntax)]
2-
fn main() {
3-
let _: Box<[isize]> = box { loop {} };
1+
#![allow(incomplete_features)]
2+
#![feature(const_generics)]
3+
#![feature(const_evaluatable_checked)]
4+
5+
struct F<const S: &'static str>;
6+
impl<const S: &'static str> X for F<{ S }> {
7+
const W: usize = 3;
8+
9+
fn d(r: &[u8; Self::W]) -> F<{ S }> {
10+
let x: [u8; Self::W] = [0; Self::W];
11+
F
12+
}
413
}
14+
15+
pub trait X {
16+
const W: usize;
17+
fn d(r: &[u8; Self::W]) -> Self;
18+
}
19+
20+
fn main() {}

0 commit comments

Comments
 (0)