]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/specialization/min_specialization/issue-79224.rs
1 #![feature(min_specialization)]
2 use std
::fmt
::{self, Display}
;
4 pub enum Cow
<'a
, B
: ?Sized
+ 'a
, O
= <B
as ToOwned
>::Owned
>
12 impl ToString
for Cow
<'_
, str> {
13 fn to_string(&self) -> String
{
18 impl<B
: ?Sized
> Display
for Cow
<'_
, B
> { //~ ERROR: the trait bound `B: Clone` is not satisfied [E0277]
19 fn fmt(&self, f
: &mut fmt
::Formatter
<'_
>) -> fmt
::Result
{ //~ ERROR: the trait bound `B: Clone` is not satisfied [E0277]