rust/tests/ui/issues/issue-45425.rs

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

13 lines
166 B
Rust
Raw Normal View History

//@ check-pass
#![allow(dead_code)]
use std::ops::Add;
fn ref_add<T>(a: &T, b: &T) -> T
where
for<'x> &'x T: Add<&'x T, Output = T>,
{
a + b
}
fn main() {}