rust/tests/ui/rfc-2632-const-trait-impl/specializing-constness.stderr

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

15 lines
383 B
Plaintext
Raw Normal View History

error: cannot specialize on const impl with non-const impl
--> $DIR/specializing-constness.rs:20:1
|
LL | impl<T: Default + Sup> A for T {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2022-11-10 22:14:08 -06:00
error: missing `~const` qualifier for specialization
2022-09-24 15:15:19 -05:00
--> $DIR/specializing-constness.rs:20:9
|
LL | impl<T: Default + Sup> A for T {
| ^^^^^^^
error: aborting due to 2 previous errors
2022-09-24 15:15:19 -05:00