rust/tests/crashes/132882.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
164 B
Rust
Raw Normal View History

2024-11-21 14:09:46 +01:00
//@ 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
}