add latest crash tests

This commit is contained in:
Matthias Krüger 2024-10-12 11:29:38 +02:00
parent fb20e4d3b9
commit bcd71624d5
4 changed files with 32 additions and 0 deletions

10
tests/crashes/131507.rs Normal file
View File

@ -0,0 +1,10 @@
//@ known-bug: #131507
//@ compile-flags: -Zmir-opt-level=5 -Zvalidate-mir
#![feature(non_lifetime_binders)]
fn brick()
where
for<T> T: Copy,
{
|| format_args!("");
}

5
tests/crashes/131534.rs Normal file
View File

@ -0,0 +1,5 @@
//@ known-bug: #131534
#![feature(generic_const_exprs)]
type Value<'v> = &[[u8; SIZE]];
trait Trait: Fn(Value) -> Value {}

4
tests/crashes/131535.rs Normal file
View File

@ -0,0 +1,4 @@
//@ known-bug: #131535
#![feature(non_lifetime_binders)]
trait v0<> {}
fn kind :(v0<'_, > impl for<v4> v0<'_, v2 = impl v0<v4> + '_>) {}

13
tests/crashes/131538.rs Normal file
View File

@ -0,0 +1,13 @@
//@ known-bug: #131538
#![feature(generic_associated_types_extended)]
#![feature(trivial_bounds)]
trait HealthCheck {
async fn check<const N: usize>();
}
fn do_health_check_par()
where
HealthCheck: HealthCheck,
{
}