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

Commit

Permalink
Use fmt_internals for 89864
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexendoo committed Feb 1, 2022
1 parent 9e606ee commit 9addd9e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ices/89864.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![crate_type = "lib"]
#![feature(fmt_internals)]

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

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

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

impl<T> fmt::Debug for Ice<T>
fn ice<T>(i: Ice<T>)
where
<<Dynamic<T> as WrapperTrait>::Assoc as Trait>::Assoc: fmt::Debug,
{
fn fmt(&self, _: &mut fmt::Formatter) -> fmt::Result {
format_args!("{:?}", self.0);
todo!()
}
fmt::ArgumentV1::new(&i.0, fmt::Debug::fmt);
}

pub struct TraitImplementor;
Expand Down

0 comments on commit 9addd9e

Please sign in to comment.