]> git.lizzy.rs Git - rust.git/blob - tests/ui/where-clauses/ignore-err-clauses.rs
Don't resolve type var roots in point_at_expr_source_of_inferred_type
[rust.git] / tests / ui / where-clauses / ignore-err-clauses.rs
1 use std::ops::Add;
2
3 fn dbl<T>(x: T) -> <T as Add>::Output
4 where
5     T: Copy + Add,
6     UUU: Copy,
7     //~^ ERROR cannot find type `UUU` in this scope
8 {
9     x + x
10 }
11
12 fn main() {
13     println!("{}", dbl(3));
14 }