7 lines
168 B
Rust
7 lines
168 B
Rust
#![feature(precise_capturing)]
|
|
|
|
fn constant<const C: usize>() -> impl Sized + use<> {}
|
|
//~^ ERROR `impl Trait` must mention all const parameters in scope
|
|
|
|
fn main() {}
|