]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-17904.stderr
Rollup merge of #107608 - P1n3appl3:master, r=tmandry
[rust.git] / tests / ui / parser / issues / issue-17904.stderr
1 error: where clauses are not allowed before tuple struct bodies
2   --> $DIR/issue-17904.rs:6:15
3    |
4 LL | struct Foo<T> where T: Copy, (T);
5    |        ---    ^^^^^^^^^^^^^^ --- the struct body
6    |        |      |
7    |        |      unexpected where clause
8    |        while parsing this tuple struct
9    |
10 help: move the body before the where clause
11    |
12 LL - struct Foo<T> where T: Copy, (T);
13 LL + struct Foo<T>(T) where T: Copy;
14    |
15
16 error: aborting due to previous error
17