1 error[E0365]: `foo` is only public within the crate, and cannot be re-exported outside
4 LL | pub use foo as foo2;
5 | ^^^^^^^^^^^ re-export of crate public `foo`
7 = note: consider declaring type or module `foo` with `pub`
9 error: aborting due to previous error
11 For more information about this error, try `rustc --explain E0365`.