rust/tests/ui/impl-trait/precise-capturing/forgot-to-capture-const.rs
2024-08-17 12:33:29 -04:00

5 lines
136 B
Rust

fn constant<const C: usize>() -> impl Sized + use<> {}
//~^ ERROR `impl Trait` must mention all const parameters in scope
fn main() {}