Rollup merge of #131591 - matthiaskrgr:crashtests, r=jieyouxu
add latest crash tests
This commit is contained in:
commit
ae8342aa90
10
tests/crashes/131507.rs
Normal file
10
tests/crashes/131507.rs
Normal 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
5
tests/crashes/131534.rs
Normal 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
4
tests/crashes/131535.rs
Normal 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
13
tests/crashes/131538.rs
Normal 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,
|
||||||
|
{
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user