fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
412 B11 linesraw
1error[E0423]: expected function, tuple struct or tuple variant, found struct `S`
2  --> $DIR/legacy-ctor-visibility.rs:9:13
3   |
4LL |         fn f() {
5   |         ------ similarly named function `f` defined here
6LL |             S(10);
7   |             ^ help: a function with a similar name exists: `f`
8
9error: aborting due to previous error
10
11For more information about this error, try `rustc --explain E0423`.