summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-45425.rs
blob: 10ce374eadaddb6b65fa7c328806d004ae904b0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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() {}