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
357 B
Plaintext
15 lines
357 B
Plaintext
error: specialization impl does not specialize any associated items
|
|
--> $DIR/specialize_nothing.rs:11:1
|
|
|
|
|
LL | impl Special for usize {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
note: impl is a specialization of this impl
|
|
--> $DIR/specialize_nothing.rs:7:1
|
|
|
|
|
LL | impl<T> Special for T {
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to previous error
|
|
|