summary refs log tree commit diff
path: root/tests/ui/impl-trait/precise-capturing/self-capture.rs
blob: a61a7f06edc1da835fe6d8b5f8ef6a24eacd1eeb (plain)
1
2
3
4
5
6
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() {}