]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/privacy.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / hygiene / privacy.rs
1 #![feature(decl_macro)]
2
3 mod foo {
4     fn f() {}
5
6     pub macro m($e:expr) {
7         f();
8         self::f();
9         ::foo::f();
10         $e
11     }
12 }
13
14 fn main() {
15     foo::m!(
16         foo::f() //~ ERROR `f` is private
17     );
18 }