rust/tests/crashes/116947.rs
2024-04-14 11:21:51 +02:00

17 lines
230 B
Rust

//@ known-bug: #116947
#![feature(min_specialization)]
trait MySpecTrait {
fn f();
}
impl<'a, T: ?Sized> MySpecTrait for T {
default fn f() {}
}
impl<'a, T: ?Sized> MySpecTrait for &'a T {
fn f() {}
}
fn main() {}