forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
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#132543 - cyrgani:master, r=compiler-errors
add and update some crashtests Adds tests for rust-lang#126268 and rust-lang#132126, updates it for rust-lang#131050.
- Loading branch information
Showing
3 changed files
with
28 additions
and
12 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,18 @@ | ||
//@ known-bug: #126268 | ||
#![feature(min_specialization)] | ||
|
||
trait Trait {} | ||
|
||
impl<T> Trait for T {} | ||
|
||
trait Data { | ||
type Elem; | ||
} | ||
|
||
struct DatasetIter<'a, R: Data> { | ||
data: &'a R::Elem, | ||
} | ||
|
||
pub struct ArrayBase {} | ||
|
||
impl<'a> Trait for DatasetIter<'a, ArrayBase> {} |
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
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,2 @@ | ||
//@ known-bug: #132126 | ||
trait UnsafeCopy where Self: use<Self> {} |