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