14 lines
164 B
Rust
14 lines
164 B
Rust
![]() |
//@ known-bug: #132882
|
||
|
|
||
|
use std::ops::Add;
|
||
|
|
||
|
pub trait Numoid
|
||
|
where
|
||
|
for<N: Numoid> &'a Self: Add<Self>,
|
||
|
{
|
||
|
}
|
||
|
|
||
|
pub fn compute<N: Numoid>(a: N) -> N {
|
||
|
&a + a
|
||
|
}
|