diff options
Diffstat (limited to 'tests/ui/where-clauses/ignore-err-clauses.rs')
-rw-r--r-- | tests/ui/where-clauses/ignore-err-clauses.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/where-clauses/ignore-err-clauses.rs b/tests/ui/where-clauses/ignore-err-clauses.rs new file mode 100644 index 000000000..c76f0e1a8 --- /dev/null +++ b/tests/ui/where-clauses/ignore-err-clauses.rs @@ -0,0 +1,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)); +} |