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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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