summary refs log tree commit diff
path: root/tests/ui/impl-trait/precise-capturing/self-capture.stderr
blob: 351de86dd5fa61a5e5d1b16f69986517aec3fab9 (plain)
1
2
3
4
5
6
7
8
9
10
error: `use<...>` precise capturing syntax is currently not allowed in return-position `impl Trait` in traits
  --> $DIR/self-capture.rs:4:34
   |
LL |     fn bar<'a>() -> impl Sized + use<Self>;
   |                                  ^^^^^^^^^
   |
   = note: currently, return-position `impl Trait` in traits and trait implementations capture all lifetimes in scope

error: aborting due to 1 previous error