rust/tests/ui/higher-rank-trait-bounds/hrtb-wrong-kind.rs

8 lines
224 B
Rust
Raw Normal View History

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() {}