Skip to content

Commit

Permalink
Use original ICE for 86535
Browse files Browse the repository at this point in the history
Closes rust-lang#901

The previous version had a separate issue opened for it which was
resolved (rust-lang/rust#87935)
  • Loading branch information
Alexendoo committed Aug 22, 2021
1 parent 550fc13 commit b5fe042
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions ices/86535.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
#![feature(box_syntax)]
fn main() {
let _: Box<[isize]> = box { loop {} };
#![allow(incomplete_features)]
#![feature(const_generics)]
#![feature(const_evaluatable_checked)]

struct F<const S: &'static str>;
impl<const S: &'static str> X for F<{ S }> {
const W: usize = 3;

fn d(r: &[u8; Self::W]) -> F<{ S }> {
let x: [u8; Self::W] = [0; Self::W];
F
}
}

pub trait X {
const W: usize;
fn d(r: &[u8; Self::W]) -> Self;
}

fn main() {}

0 comments on commit b5fe042

Please sign in to comment.