rust/tests/ui/generic-const-items/misplaced-where-clause.stderr

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

37 lines
853 B
Plaintext
Raw Normal View History

2023-07-09 20:10:03 -05:00
error: where clauses are not allowed before const item bodies
--> $DIR/misplaced-where-clause.rs:7:1
|
LL | const K<T>: u64
| - while parsing this const item
LL | / where
LL | | T: Tr<()>
| |_____________^ unexpected where clause
LL | = T::K;
| ---- the item body
|
help: move the body before the where clause
|
LL ~ = T::K where
LL ~ T: Tr<()>;
|
error: where clauses are not allowed before const item bodies
--> $DIR/misplaced-where-clause.rs:14:5
|
LL | const K: u64
| - while parsing this const item
LL | / where
LL | | P: Copy
| |_______________^ unexpected where clause
LL | = 0;
| - the item body
|
help: move the body before the where clause
|
LL ~ = 0 where
LL ~ P: Copy;
|
error: aborting due to 2 previous errors