rust/src/test/ui/hygiene/intercrate.rs

13 lines
254 B
Rust
Raw Normal View History

2017-05-25 02:04:03 +00:00
// ignore-pretty pretty-printing is unhygienic
2017-03-25 02:37:55 +00:00
// aux-build:intercrate.rs
#![feature(decl_macro)]
2017-03-25 02:37:55 +00:00
extern crate intercrate;
fn main() {
assert_eq!(intercrate::foo::m!(), 1);
//~^ ERROR type `fn() -> u32 {intercrate::foo::bar::f}` is private
2017-03-25 02:37:55 +00:00
}