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