blob: c76f0e1a8b2b53499ea2f50bf609a3afa4e136ab [file] [log] [blame] [edit]
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));
}