diff options
Diffstat (limited to 'tests/ui/higher-rank-trait-bounds/hrtb-wrong-kind.rs')
-rw-r--r-- | tests/ui/higher-rank-trait-bounds/hrtb-wrong-kind.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/higher-rank-trait-bounds/hrtb-wrong-kind.rs b/tests/ui/higher-rank-trait-bounds/hrtb-wrong-kind.rs new file mode 100644 index 000000000..1a9bb2523 --- /dev/null +++ b/tests/ui/higher-rank-trait-bounds/hrtb-wrong-kind.rs @@ -0,0 +1,7 @@ +fn a() where for<T> T: Copy {} +//~^ ERROR only lifetime parameters can be used in this context + +fn b() where for<const C: usize> [(); C]: Copy {} +//~^ ERROR only lifetime parameters can be used in this context + +fn main() {} |