2016-08-26 00:14:20 +02:00
|
|
|
#![feature(specialization)]
|
2020-06-16 10:06:35 +02:00
|
|
|
//~^ WARN the feature `specialization` is incomplete
|
2016-08-26 00:14:20 +02:00
|
|
|
|
|
|
|
trait SpaceLlama {
|
|
|
|
fn fly(&self);
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<T> SpaceLlama for T {
|
|
|
|
default fn fly(&self) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<T: Clone> SpaceLlama for T {
|
|
|
|
fn fly(&self) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl SpaceLlama for i32 {
|
2016-08-30 10:21:27 +05:30
|
|
|
default fn fly(&self) {}
|
|
|
|
//~^ ERROR E0520
|
2016-08-26 00:14:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|