Skip to content

Commit fb500c3

Browse files
committed
add two old crash tests
1 parent f7cc13a commit fb500c3

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

tests/crashes/108428.rs

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

tests/crashes/132826.rs

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//@ known-bug: #132826
2+
pub trait MyTrait {
3+
type Item;
4+
}
5+
6+
impl<K> MyTrait for Vec<K> {
7+
type Item = Vec<K>;
8+
}
9+
10+
impl<K> From<Vec<K>> for <Vec<K> as MyTrait>::Item {}

0 commit comments

Comments
 (0)