mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
17 lines
269 B
Rust
17 lines
269 B
Rust
//@ aux-build:issue-17718-const-privacy.rs
|
|
|
|
extern crate issue_17718_const_privacy as other;
|
|
|
|
use a::B; //~ ERROR: constant `B` is private
|
|
use other::{
|
|
FOO,
|
|
BAR, //~ ERROR: constant `BAR` is private
|
|
FOO2,
|
|
};
|
|
|
|
mod a {
|
|
const B: usize = 3;
|
|
}
|
|
|
|
fn main() {}
|