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

7 lines
190 B
Rust

trait Foo {
fn bar<'a>() -> impl Sized + use<Self>;
//~^ ERROR `use<...>` precise capturing syntax is currently not allowed in return-position `impl Trait` in traits
}
fn main() {}