mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
15 lines
383 B
Plaintext
15 lines
383 B
Plaintext
error: cannot specialize on const impl with non-const impl
|
|
--> $DIR/specializing-constness.rs:20:1
|
|
|
|
|
LL | impl<T: Default + Sup> A for T {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing `~const` qualifier for specialization
|
|
--> $DIR/specializing-constness.rs:20:9
|
|
|
|
|
LL | impl<T: Default + Sup> A for T {
|
|
| ^^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|