rust/tests/ui/impl-trait/precise-capturing/forgot-to-capture-const.rs

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

5 lines
136 B
Rust
Raw Permalink Normal View History

2024-06-05 20:18:52 +00:00
fn constant<const C: usize>() -> impl Sized + use<> {}
2024-04-04 16:54:56 +00:00
//~^ ERROR `impl Trait` must mention all const parameters in scope
fn main() {}