fork/rust

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

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

1.44.0
378 B14 linesraw
1error[E0446]: private type `foo::Bar` in public interface
2  --> $DIR/E0446.rs:4:5
3   |
4LL |       struct Bar(u32);
5   |       - `foo::Bar` declared as private
6LL | 
7LL | /     pub fn bar() -> Bar {
8LL | |         Bar(0)
9LL | |     }
10   | |_____^ can't leak private type
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0446`.