]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macro-path.rs
Rollup merge of #93813 - xldenis:public-mir-passes, r=wesleywiser
[rust.git] / src / test / ui / macros / macro-path.rs
1 // run-pass
2 #![allow(non_camel_case_types)]
3
4
5 mod m {
6     pub type t = isize;
7 }
8
9 macro_rules! foo {
10     ($p:path) => ({
11         fn f() -> $p { 10 }
12         f()
13     })
14 }
15
16 pub fn main() {
17     assert_eq!(foo!(m::t), 10);
18 }