summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-2632-const-trait-impl/specializing-constness.stderr
blob: 1ffdc50e5893233d1ed9c13e502276df2164af5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: cannot specialize on const impl with non-const impl
  --> $DIR/specializing-constness.rs:23:1
   |
LL | impl<T: Spec + Sup> A for T {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: missing `~const` qualifier for specialization
  --> $DIR/specializing-constness.rs:23:9
   |
LL | impl<T: Spec + Sup> A for T {
   |         ^^^^

error: aborting due to 2 previous errors