about summary refs log tree commit diff
path: root/tests/ui/error-codes/E0657.stderr
blob: c9dfc9eb9069df40fea5724a041a436192955f85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
error[E0657]: `impl Trait` cannot capture higher-ranked lifetime from `dyn` type
  --> $DIR/E0657.rs:10:35
   |
LL |     -> Box<dyn for<'a> Id<impl Lt<'a>>>
   |                                   ^^
   |
note: lifetime declared here
  --> $DIR/E0657.rs:10:20
   |
LL |     -> Box<dyn for<'a> Id<impl Lt<'a>>>
   |                    ^^

error[E0657]: `impl Trait` cannot capture higher-ranked lifetime from `dyn` type
  --> $DIR/E0657.rs:19:39
   |
LL |         -> Box<dyn for<'a> Id<impl Lt<'a>>>
   |                                       ^^
   |
note: lifetime declared here
  --> $DIR/E0657.rs:19:24
   |
LL |         -> Box<dyn for<'a> Id<impl Lt<'a>>>
   |                        ^^

error: aborting due to 2 previous errors

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