fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
520 B12 linesraw
1error: private struct constructors are not usable through re-exports in outer modules
2  --> $DIR/legacy-ctor-visibility.rs:13:13
3   |
4LL |             S(10);
5   |             ^
6   |
7   = note: `#[deny(legacy_constructor_visibility)]` on by default
8   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
9   = note: for more information, see issue #39207 <https://github.com/rust-lang/rust/issues/39207>
10
11error: aborting due to previous error
12