fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
439 B13 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() {
5LL | |             S(10);
6   | |             ^ help: a function with a similar name exists: `f`
7LL | |
8LL | |         }
9   | |_________- similarly named function `f` defined here
10
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0423`.