1 error[E0428]: the name `Foo` is defined multiple times
2 --> $DIR/enum-and-module-in-same-scope.rs:5:1
5 | -------- previous definition of the type `Foo` here
8 | ^^^^^^^ `Foo` redefined here
10 = note: `Foo` must be defined only once in the type namespace of this module
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0428`.