2016-08-25 17:14:20 -05:00
|
|
|
#![feature(specialization)]
|
2020-06-16 03:06:35 -05:00
|
|
|
//~^ WARN the feature `specialization` is incomplete
|
2016-08-25 17:14:20 -05: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-29 23:51:27 -05:00
|
|
|
default fn fly(&self) {}
|
|
|
|
//~^ ERROR E0520
|
2016-08-25 17:14:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|