]> git.proxmox.com Git - rustc.git/blob - tests/ui/resolve/issue-57523.rs
New upstream version 1.68.2+dfsg1
[rustc.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() {}