rust/tests/ui/impl-trait/precise-capturing/apit.rs

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

8 lines
228 B
Rust
Raw Normal View History

2024-04-05 00:36:18 +00:00
#![feature(precise_capturing)]
//~^ WARN the feature `precise_capturing` is incomplete
fn hello(_: impl use<> Sized) {}
//~^ ERROR `use<...>` precise capturing syntax not allowed on argument-position `impl Trait`
fn main() {}