]> git.lizzy.rs Git - rust.git/blob - src/test/ui/higher-rank-trait-bounds/hrtb-wrong-kind.rs
Merge commit 'e36a20c24f35a4cee82bbdc600289104c9237c22' into ra-sync-and-pms-component
[rust.git] / src / test / ui / higher-rank-trait-bounds / hrtb-wrong-kind.rs
1 fn a() where for<T> T: Copy {}
2 //~^ ERROR only lifetime parameters can be used in this context
3
4 fn b() where for<const C: usize> [(); C]: Copy {}
5 //~^ ERROR only lifetime parameters can be used in this context
6
7 fn main() {}