diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-25 13:48:26 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-11-25 13:48:46 +0100 |
commit | 8046190e8f537407210fb87acbfe96d4084d58da (patch) | |
tree | 34c093627f5fd75db82cb8fb48402b82ace7d803 /tests/tests.rs | |
parent | 74a29b912aaa14dbeb7e5c51ae11c61e733ef645 (diff) |
support Self qualified as same trait
Diffstat (limited to 'tests/tests.rs')
-rw-r--r-- | tests/tests.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/tests.rs b/tests/tests.rs index e30b0ef..e3df519 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -35,6 +35,8 @@ fn it_works() { #[allow(clippy::type_complexity)] fn test10(&self) -> (Self::A, (Self::A, Self::B), Self::B); + fn test11(&self) -> <Self as MyTrait>::A; + // fn test9(&self) -> &dyn Iterator<Item = Self::A>; fn mut1(&mut self) -> Self::A; |