mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-16 05:56:56 +00:00
add two old crash tests
This commit is contained in:
parent
f7cc13af82
commit
fb500c34ea
6
tests/crashes/108428.rs
Normal file
6
tests/crashes/108428.rs
Normal 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
10
tests/crashes/132826.rs
Normal 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 {}
|
Loading…
Reference in New Issue
Block a user