]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/associated-types-issue-20371.rs
Merge commit '0969bc6dde001e01e7e1f58c8ccd7750f8a49ae1' into sync_cg_clif-2021-03-29
[rust.git] / src / test / ui / associated-types / associated-types-issue-20371.rs
1 // run-pass
2 // Test that we are able to have an impl that defines an associated type
3 // before the actual trait.
4
5 // pretty-expanded FIXME #23616
6
7 impl X for f64 { type Y = isize; }
8 trait X { type Y; }
9 fn main() {}