]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/macro-path.rs
Rollup merge of #106715 - BoxyUwU:new_solver_triagebot, r=lcnr
[rust.git] / tests / 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 }