]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0365.rs
Suggest `if let`/`let_else` for refutable pat in `let`
[rust.git] / src / test / ui / error-codes / E0365.rs
1 mod foo {
2     pub const X: u32 = 1;
3 }
4
5 pub use foo as foo2;
6 //~^ ERROR `foo` is only public within the crate, and cannot be re-exported outside [E0365]
7
8 fn main() {}