Rollup merge of #136072 - cyrgani:old-crash-tests, r=WaffleLapkin

add two old crash tests

This is for #108248 and #132826.
This commit is contained in:
León Orell Valerian Liehr 2025-01-27 04:34:52 +01:00 committed by GitHub
commit f7b58ea3e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 0 deletions

6
tests/crashes/108428.rs Normal file
View file

@ -0,0 +1,6 @@
//@ known-bug: #108428
//@ needs-rustc-debug-assertions
//@ compile-flags: -Wunused-lifetimes
fn main() {
let _: extern fn<'a: 'static>();
}

10
tests/crashes/132826.rs Normal file
View file

@ -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 {}