fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
390 B15 linesraw
1error[E0201]: duplicate definitions with name `bar`:
2  --> $DIR/issue-4265.rs:10:5
3   |
4LL | /     fn bar() {
5LL | |         Foo { baz: 0 }.bar();
6LL | |     }
7   | |_____- previous definition of `bar` here
8LL | 
9LL | /     fn bar() {
10LL | |     }
11   | |_____^ duplicate definition
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0201`.