]> git.lizzy.rs Git - rust.git/blob - src/test/ui/self/self-type-param.rs
Rollup merge of #101388 - compiler-errors:issue-101376, r=fee1-dead
[rust.git] / src / test / ui / self / self-type-param.rs
1 // build-pass (FIXME(62277): could be check-pass?)
2 #![allow(dead_code)]
3 // pretty-expanded FIXME #23616
4
5 trait MyTrait {
6     fn f(&self) -> Self;
7 }
8
9 struct S {
10     x: isize
11 }
12
13 impl MyTrait for S {
14     fn f(&self) -> S {
15         S { x: 3 }
16     }
17 }
18
19 pub fn main() {}