2025-06-26 17:53:39 +00:00
|
|
|
pub enum Foo<T>
|
|
|
|
|
where:
|
2025-06-26 18:08:15 +00:00
|
|
|
//~^ ERROR unexpected colon after `where`
|
2025-06-26 17:53:39 +00:00
|
|
|
T: Missing, {}
|
2025-06-26 18:08:15 +00:00
|
|
|
//~^ ERROR cannot find trait `Missing` in this scope
|
|
|
|
|
// (evidence that we continue parsing after the erroneous colon)
|
2025-06-26 17:53:39 +00:00
|
|
|
|
|
|
|
|
fn main() {}
|