]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/pattern/pattern-error-continue.rs
1 // Test that certain pattern-match type errors are non-fatal
5 C(isize, isize, isize),
17 A
::B(_
, _
, _
) => (), //~ ERROR this pattern has 3 fields, but
18 A
::D(_
) => (), //~ ERROR expected tuple struct or tuple variant, found unit variant `A::D`
23 //~^ ERROR mismatched types
24 //~| expected `char`, found struct `S`
29 //~^ ERROR mismatched types
30 //~| expected `char`, found `bool`
33 E
::V
=> {}
//~ ERROR failed to resolve: use of undeclared type `E`