mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
add two old crash tests
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
//@ known-bug: #108428
|
||||
//@ needs-rustc-debug-assertions
|
||||
//@ compile-flags: -Wunused-lifetimes
|
||||
fn main() {
|
||||
let _: extern fn<'a: 'static>();
|
||||
}
|
||||
@@ -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 {}
|
||||
Reference in New Issue
Block a user