rust/tests/ui/structs-enums/recover-enum-with-bad-where.rs
2025-06-26 18:11:14 +00:00

9 lines
216 B
Rust

pub enum Foo<T>
where:
//~^ ERROR unexpected colon after `where`
T: Missing, {}
//~^ ERROR cannot find trait `Missing` in this scope
// (evidence that we continue parsing after the erroneous colon)
fn main() {}