File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ pub trait Primitive: Clone
344
344
+ Div < Self , Self >
345
345
+ Rem < Self , Self > {
346
346
// FIXME (#5527): These should be associated constants
347
- // FIXME (#8888): Removing `unused_self` requires #8888 to be fixed.
347
+ // FIXME (#8888): `ForType` should be a language feature. See also: #6894
348
348
fn bits ( _: ForType < Self > ) -> uint ;
349
349
fn bytes ( _: ForType < Self > ) -> uint ;
350
350
fn is_signed ( _: ForType < Self > ) -> bool ;
@@ -388,7 +388,7 @@ pub trait Float: Real
388
388
fn is_normal ( & self ) -> bool ;
389
389
fn classify ( & self ) -> FPCategory ;
390
390
391
- // FIXME (#8888): Removing `unused_self` requires #8888 to be fixed.
391
+ // FIXME (#8888): `ForType` should be a language feature. See also: #6894
392
392
fn mantissa_digits ( _: ForType < Self > ) -> uint ;
393
393
fn digits ( _: ForType < Self > ) -> uint ;
394
394
fn epsilon ( ) -> Self ;
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ impl Void {
96
96
///
97
97
/// assert_eq!(A::a(ForType::<int>), 6);
98
98
/// ~~~
99
+ // FIXME (#8888): This should really be part of the language. See also: #6894
99
100
pub struct ForType < T > ;
100
101
101
102
#[ cfg( test) ]
@@ -176,7 +177,7 @@ mod tests {
176
177
}
177
178
178
179
impl A for int {
179
- fn a ( _: ForType < int > ) -> uint { 6 }
180
+ fn a ( _: ForType < int33 > ) -> uint { 6 }
180
181
}
181
182
182
183
assert_eq ! ( A :: a( ForType :: <int>) , 6 ) ;
You can’t perform that action at this time.
0 commit comments