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

Commit 49c58bc

Browse files
JohnTitorDylan-DPC
authored andcommitted
Add more ICEs (#230)
1 parent 9677438 commit 49c58bc

File tree

7 files changed

+58
-0
lines changed

7 files changed

+58
-0
lines changed

ices/66706.rs

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
fn bug() {
2+
[0; [|f @ &ref _| {} ; 0 ].len() ];
3+
}
4+
5+
fn main() {}

ices/66906.rs

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#![feature(const_generics)]
2+
3+
pub struct Tuple;
4+
5+
pub trait ConstInput<const I: usize> {
6+
type Input;
7+
}
8+
9+
impl Tuple {
10+
fn const_index<const I: usize>(_: <Self as ConstInput<I>>::Input)
11+
where
12+
Self: ConstInput<I>
13+
{}
14+
}
15+
16+
fn main() {}

ices/66962.rs

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#![feature(const_generics)]
2+
3+
#[derive(PartialEq, Eq)]
4+
struct Config {
5+
arr_size: usize
6+
}
7+
8+
struct B<const CFG: Config> {
9+
arr: [u8; {CFG.arr_size}]
10+
}
11+
12+
fn main() {}

ices/67158.rs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
async { yield print!(":C") };
3+
}

ices/67166.rs

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#![feature(impl_trait_in_bindings)]
2+
3+
#[allow(dead_code)]
4+
fn run() {
5+
let _foo: Box<impl Copy + '_> = Box::new(());
6+
}
7+
8+
fn main() {}

ices/67375.rs

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
struct Bug<T> {
2+
inner: [(); { [|_: &T| {}; 0].len() }],
3+
}
4+
5+
fn main() {}

ices/67377.rs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
use std::marker::PhantomData;
2+
3+
enum Bug {
4+
V = [PhantomData; { [ () ].len() ].len() as isize,
5+
// ^
6+
// + ---- this brace is never closed!!!
7+
}
8+
9+
fn main() {}

0 commit comments

Comments
 (0)