forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
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 rust-lang#135398 - matthiaskrgr:crash, r=lqd add more crash tests try-job: aarch64-apple try-job: x86_64-msvc try-job: x86_64-gnu try-job: dist-i586-gnu-i586-i686-musl
- Loading branch information
Showing
5 changed files
with
56 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,24 @@ | ||
//@ known-bug: #135122 | ||
trait Add { | ||
type Output; | ||
fn add(_: (), _: Self::Output) {} | ||
} | ||
|
||
trait IsSame<Lhs> { | ||
type Assoc; | ||
} | ||
|
||
trait Data { | ||
type Elem; | ||
} | ||
|
||
impl<B> IsSame<i16> for f32 where f32: IsSame<B, Assoc = B> {} | ||
|
||
impl<A> Add for i64 | ||
where | ||
f32: IsSame<A>, | ||
i8: Data<Elem = A>, | ||
{ | ||
type Output = <f32 as IsSame<A>>::Assoc; | ||
fn add(_: Data, _: Self::Output) {} | ||
} |
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: #135124 | ||
trait A { | ||
fn y(&self) | ||
{ | ||
fn call() -> impl Sized {} | ||
self.fold(call()); | ||
} | ||
fn fold(&self, &self._) {} | ||
} |
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,10 @@ | ||
//@ known-bug: #135128 | ||
//@ compile-flags: -Copt-level=1 --edition=2021 | ||
|
||
async fn return_str() -> str | ||
where | ||
str: Sized, | ||
{ | ||
*"Sized".to_string().into_boxed_str() | ||
} | ||
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,8 @@ | ||
//@ known-bug: #135210 | ||
|
||
#![feature(const_trait_impl)] | ||
const _: fn(&String) = |s| { | ||
&*s as &str; | ||
}; | ||
|
||
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,5 @@ | ||
//@ known-bug: #135341 | ||
type A<T> = B; | ||
type B = _; | ||
|
||
pub fn main() {} |