-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #131964 - matthiaskrgr:crashes2010, r=jieyouxu
add latest crash tests r? `@jieyouxu`
- Loading branch information
Showing
8 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
//@ known-bug: #121637 | ||
#![feature(non_lifetime_binders)] | ||
trait Trait<Type> { | ||
type Type; | ||
|
||
fn method(&self) -> impl for<T> Trait<impl Trait<T>>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
//@ known-bug: #131648 | ||
#![feature(return_type_notation)] | ||
|
||
trait IntFactory { | ||
fn stream(self) -> impl IntFactory<stream(..): Send>; | ||
} | ||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//@ known-bug: #131668 | ||
|
||
#![feature(generic_associated_types_extended)] | ||
trait B { | ||
type Y<const N: i16>; | ||
} | ||
|
||
struct Erase<T: B>(T); | ||
|
||
fn make_static() { | ||
Erase::<dyn for<'c> B<&'c ()>>(()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//@ known-bug: #131758 | ||
#![feature(unboxed_closures)] | ||
trait Foo {} | ||
|
||
impl<T: Fn<(i32,)>> Foo for T {} | ||
|
||
fn baz<T: Foo>(_: T) {} | ||
|
||
fn main() { | ||
baz(|x| ()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//@ known-bug: #131762 | ||
// ignore-tidy-linelength | ||
|
||
#![feature(generic_assert)] | ||
struct FloatWrapper(f64); | ||
|
||
fn main() { | ||
assert!((0.0 / 0.0 >= 0.0) == (FloatWrapper(0.0 / 0.0) >= FloatWrapper(size_of::<u8>, size_of::<u16>, size_of::<usize> as fn() -> usize))) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
//@ known-bug: #131787 | ||
#[track_caller] | ||
static no_mangle: u32 = { | ||
unimplemented!(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//@ known-bug: #131886 | ||
//@ compile-flags: -Zvalidate-mir --crate-type=lib | ||
#![feature(trait_upcasting, type_alias_impl_trait)] | ||
|
||
type Tait = impl Sized; | ||
|
||
trait Foo<'a>: Bar<'a, 'a, Tait> {} | ||
trait Bar<'a, 'b, T> {} | ||
|
||
fn test_correct3<'a>(x: &dyn Foo<'a>, _: Tait) { | ||
let _ = x as &dyn Bar<'_, '_, ()>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//@ known-bug: #131915 | ||
|
||
macro_rules! y { | ||
( $($matcher:tt)*) => { | ||
x | ||
}; | ||
} | ||
|
||
const _: A< | ||
{ | ||
y! { test.tou8 } | ||
}, | ||
>; |