Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (10 sloc) 202 Bytes
// build-pass (FIXME(62277): could be 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() {}
You can’t perform that action at this time.