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
371 B
Plaintext
Raw Normal View History

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