about summary refs log tree commit diff
path: root/tests/ui/impl-trait/precise-capturing/forgot-to-capture-const.rs
blob: 2bf2e5fef18f53380d946e1a9a217526d34a579c (plain)
1
2
3
4
fn constant<const C: usize>() -> impl Sized + use<> {}
//~^ ERROR `impl Trait` must mention all const parameters in scope

fn main() {}