rust/tests/ui/privacy/issue-17718-const-privacy.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
268 B
Rust
Raw Normal View History

2018-11-05 04:00:03 +00:00
// aux-build:issue-17718-const-privacy.rs
extern crate issue_17718_const_privacy as other;
2016-06-03 20:15:00 +00:00
use a::B; //~ ERROR: constant `B` is private
use other::{
FOO,
2016-06-03 20:15:00 +00:00
BAR, //~ ERROR: constant `BAR` is private
FOO2,
};
mod a {
const B: usize = 3;
}
fn main() {}