rust/tests/ui/specialization/min_specialization/specialize_nothing.stderr
Matthew Jasper bd928a0b5e Disallow (min) specialization imps with no items
Such implementations are usually mistakes and are not used in the
compiler or standard library (after this commit) so forbid them with
`min_specialization`.
2023-05-05 16:19:18 +01:00

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