os-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.

8 lines
222 B
Rust
Raw Normal View History

2024-04-04 12:54:56 -04:00
#![feature(precise_capturing)]
//~^ WARN the feature `precise_capturing` is incomplete
fn constant<const C: usize>() -> impl use<> Sized {}
//~^ ERROR `impl Trait` must mention all const parameters in scope
fn main() {}