]> git.lizzy.rs Git - rust.git/blob - src/test/ui/enum/enum-and-module-in-same-scope.stderr
Rollup merge of #100479 - compiler-errors:argument-type-error-improvements, r=lcnr
[rust.git] / src / test / ui / enum / enum-and-module-in-same-scope.stderr
1 error[E0428]: the name `Foo` is defined multiple times
2   --> $DIR/enum-and-module-in-same-scope.rs:5:1
3    |
4 LL | enum Foo {
5    | -------- previous definition of the type `Foo` here
6 ...
7 LL | mod Foo {
8    | ^^^^^^^ `Foo` redefined here
9    |
10    = note: `Foo` must be defined only once in the type namespace of this module
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0428`.