Sign in
fuchsia
/
third_party
/
rust
/
upstream/beta
/
.
/
tests
/
ui
/
associated-types
/
issue-71113.rs
blob: 51429f9ee6738f7a7285ee17287f8e2fe0b23eb7 [
file
] [
log
] [
blame
]
//@ 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
()
{}