summaryrefslogtreecommitdiffstats
path: root/tests/ui/where-clauses/ignore-err-clauses.rs
blob: c76f0e1a8b2b53499ea2f50bf609a3afa4e136ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::ops::Add;

fn dbl<T>(x: T) -> <T as Add>::Output
where
    T: Copy + Add,
    UUU: Copy,
    //~^ ERROR cannot find type `UUU` in this scope
{
    x + x
}

fn main() {
    println!("{}", dbl(3));
}