Rollup merge of #131591 - matthiaskrgr:crashtests, r=jieyouxu

add latest crash tests
This commit is contained in:
Trevor Gross 2024-10-12 21:38:37 -05:00 committed by GitHub
commit ae8342aa90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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,
{
}