]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/source/issue_4257.rs
Rollup merge of #107166 - petrochenkov:nooptable, r=oli-obk
[rust.git] / src / tools / rustfmt / tests / source / issue_4257.rs
1 trait Trait<T> {
2     type Type<'a> where T: 'a;
3     fn foo(x: &T) -> Self::Type<'_>;
4 }
5 impl<T> Trait<T> for () {
6     type Type<'a> where T: 'a = &'a T;
7     fn foo(x: &T) -> Self::Type<'_> {
8         x
9     }
10 }