]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/generic-associated-types/issue-90729.rs
3 use std
::marker
::PhantomData
;
11 impl AsBytes
for &str {}
16 type Ref
<'a
> = &'a
str;
19 pub struct Bytes
<T
: Type
> {
20 _marker
: PhantomData
<T
>,
23 impl<T
: Type
> Bytes
<T
>
25 for<'a
> T
::Ref
<'a
>: AsBytes
,
27 pub fn new() -> Self {
35 let _b
= Bytes
::<Utf8
>::new();