rust/tests/ui/specialization/min_specialization/specialize_nothing.rs

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

15 lines
235 B
Rust
Raw Normal View History

#![feature(min_specialization)]
trait Special {
fn be_special();
}
impl<T> Special for T {
fn be_special() {}
}
impl Special for usize {}
//~^ ERROR specialization impl does not specialize any associated items
fn main() {}