2018-11-05 04:00:03 +00:00
|
|
|
// aux-build:issue-17718-const-privacy.rs
|
2014-10-06 21:16:35 -07:00
|
|
|
|
2015-03-19 15:39:03 -07:00
|
|
|
extern crate issue_17718_const_privacy as other;
|
2014-10-06 21:16:35 -07:00
|
|
|
|
2016-06-03 23:15:00 +03:00
|
|
|
use a::B; //~ ERROR: constant `B` is private
|
2014-10-06 21:16:35 -07:00
|
|
|
use other::{
|
|
|
|
FOO,
|
2016-06-03 23:15:00 +03:00
|
|
|
BAR, //~ ERROR: constant `BAR` is private
|
2014-10-06 21:16:35 -07:00
|
|
|
FOO2,
|
|
|
|
};
|
|
|
|
|
|
|
|
mod a {
|
2015-01-08 22:02:42 +11:00
|
|
|
const B: usize = 3;
|
2014-10-06 21:16:35 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|