rust/tests/ui/error-codes/E0520.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
333 B
Rust
Raw Normal View History

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