Skip to content

Commit

Permalink
Rollup merge of #136072 - cyrgani:old-crash-tests, r=WaffleLapkin
Browse files Browse the repository at this point in the history
add two old crash tests

This is for #108248 and #132826.
  • Loading branch information
fmease authored Jan 27, 2025
2 parents 2949f2a + fb500c3 commit f7b58ea
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/crashes/108428.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//@ known-bug: #108428
//@ needs-rustc-debug-assertions
//@ compile-flags: -Wunused-lifetimes
fn main() {
let _: extern fn<'a: 'static>();
}
10 changes: 10 additions & 0 deletions tests/crashes/132826.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//@ known-bug: #132826
pub trait MyTrait {
type Item;
}

impl<K> MyTrait for Vec<K> {
type Item = Vec<K>;
}

impl<K> From<Vec<K>> for <Vec<K> as MyTrait>::Item {}

0 comments on commit f7b58ea

Please sign in to comment.