fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

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