]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/issue-57523.rs
:arrow_up: rust-analyzer
[rust.git] / src / test / 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() {}