diff options
Diffstat (limited to 'tests/ui/associated-types/issue-71113.rs')
-rw-r--r-- | tests/ui/associated-types/issue-71113.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/associated-types/issue-71113.rs b/tests/ui/associated-types/issue-71113.rs new file mode 100644 index 000000000..48de89127 --- /dev/null +++ b/tests/ui/associated-types/issue-71113.rs @@ -0,0 +1,16 @@ +// check-pass + +use std::borrow::Cow; + +enum _Recursive<'a> +where + Self: ToOwned<Owned=Box<Self>> +{ + Variant(MyCow<'a, _Recursive<'a>>), +} + +pub struct Wrapper<T>(T); + +pub struct MyCow<'a, T: ToOwned<Owned=Box<T>> + 'a>(Wrapper<Cow<'a, T>>); + +fn main() {} |