]>
git.proxmox.com Git - rustc.git/blob - tests/ui/statics/static-methods-in-traits2.rs
2 // pretty-expanded FIXME #23616
4 pub trait Number
: NumConv
{
5 fn from
<T
:Number
>(n
: T
) -> Self;
9 fn from
<T
:Number
>(n
: T
) -> f64 { n.to_float() }
13 fn to_float(&self) -> f64;
16 impl NumConv
for f64 {
17 fn to_float(&self) -> f64 { *self }
21 let _
: f64 = Number
::from(0.0f64);