2019-07-02 16:30:28 -05:00
|
|
|
// build-pass (FIXME(62277): could be check-pass?)
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2017-10-21 11:41:27 -05:00
|
|
|
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() {}
|