mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-16 12:39:53 +00:00
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
|
|
}
|