bd928a0b5e
Such implementations are usually mistakes and are not used in the compiler or standard library (after this commit) so forbid them with `min_specialization`.
15 lines
235 B
Rust
15 lines
235 B
Rust
#![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() {}
|