1 error[E0599]: no variant named `Baz` found for type `Foo` in the current scope
2 --> $DIR/issue-28971.rs:9:18
5 | -------- variant `Baz` not found here
7 LL | Foo::Baz(..) => (),
10 | variant not found in `Foo`
11 | help: did you mean: `Bar`
13 error: aborting due to previous error
15 For more information about this error, try `rustc --explain E0599`.