summary refs log tree commit diff
path: root/src/test/ui/issues/issue-45425.rs
blob: a2ef85a2a02c9c6827599347fc52ceb2833a4e65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// compile-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() {}