mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 04:04:06 +00:00
17 lines
230 B
Rust
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() {}
|