rust/tests/ui/impl-trait/precise-capturing/self-capture.rs

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

9 lines
222 B
Rust
Raw Normal View History

#![feature(precise_capturing)]
trait Foo {
2024-06-05 20:18:52 +00:00
fn bar<'a>() -> impl Sized + use<Self>;
2024-06-20 16:17:42 +00:00
//~^ ERROR `use<...>` precise capturing syntax is currently not allowed in return-position `impl Trait` in traits
}
fn main() {}