about summary refs log tree commit diff
path: root/tests/ui/structs-enums/recover-enum-with-bad-where.rs
blob: cf7747d710b59111669132be7a5e8188266f833b (plain)
1
2
3
4
5
6
7
8
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() {}