summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/recover-where-clause-before-tuple-struct-body-1.rs
blob: f515ae81e510692b16414229551cfea922c52504 (plain)
1
2
3
4
5
6
7
// Regression test for issues #100790 and #106439.

// Make sure that we still show a helpful error message even if the trailing semicolon is missing.

struct Foo<T> where T: MyTrait, (T)
//~^ ERROR where clauses are not allowed before tuple struct bodies
//~| ERROR expected `;`, found `<eof>`