]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/issue-57523.rs
Rollup merge of #106144 - tgross35:patch-1, r=Mark-Simulacrum
[rust.git] / tests / ui / resolve / issue-57523.rs
1 // check-pass
2
3 struct S(u8);
4
5 impl S {
6     fn method1() -> Self {
7         Self(0)
8     }
9 }
10
11 macro_rules! define_method { () => {
12     impl S {
13         fn method2() -> Self {
14             Self(0) // OK
15         }
16     }
17 }}
18
19 define_method!();
20
21 fn main() {}