about summary refs log tree commit diff
path: root/tests/ui/impl-trait/issues/issue-54895.edition2015.stderr
blob: 27a3c6c8b7ce0bb4064d24c93a19fe6efe3f273a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0657]: `impl Trait` cannot capture higher-ranked lifetime from outer `impl Trait`
  --> $DIR/issue-54895.rs:18:53
   |
LL | fn f() -> impl for<'a> Trait<'a, Out = impl Sized + 'a> {
   |                                                     ^^
   |
note: lifetime declared here
  --> $DIR/issue-54895.rs:18:20
   |
LL | fn f() -> impl for<'a> Trait<'a, Out = impl Sized + 'a> {
   |                    ^^

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0657`.