Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 9addd9e

Browse files
committed
Use fmt_internals for 89864
1 parent 9e606ee commit 9addd9e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

ices/89864.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![crate_type = "lib"]
2+
#![feature(fmt_internals)]
23

34
use core::{fmt, marker::PhantomData};
45

@@ -12,14 +13,11 @@ pub trait Trait {
1213

1314
pub struct Ice<T>(<<Dynamic<T> as WrapperTrait>::Assoc as Trait>::Assoc);
1415

15-
impl<T> fmt::Debug for Ice<T>
16+
fn ice<T>(i: Ice<T>)
1617
where
1718
<<Dynamic<T> as WrapperTrait>::Assoc as Trait>::Assoc: fmt::Debug,
1819
{
19-
fn fmt(&self, _: &mut fmt::Formatter) -> fmt::Result {
20-
format_args!("{:?}", self.0);
21-
todo!()
22-
}
20+
fmt::ArgumentV1::new(&i.0, fmt::Debug::fmt);
2321
}
2422

2523
pub struct TraitImplementor;

0 commit comments

Comments
 (0)