summary refs log tree commit diff
path: root/src/test/ui/static-lifetime.stderr
blob: adeabd91302ce9e6925b1d95e4c5f800337f5cd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0478]: lifetime bound not satisfied
  --> $DIR/static-lifetime.rs:13:20
   |
13 | impl<'a, A: Clone> Arbitrary for ::std::borrow::Cow<'a, A> {}
   |                    ^^^^^^^^^
   |
note: lifetime parameter instantiated with the lifetime 'a as defined on the impl at 13:1
  --> $DIR/static-lifetime.rs:13:1
   |
13 | impl<'a, A: Clone> Arbitrary for ::std::borrow::Cow<'a, A> {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: but lifetime parameter must outlive the static lifetime

error: aborting due to previous error