]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0365.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[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() {}