rust/tests/ui/static/static-lifetime.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
562 B
Plaintext
Raw Normal View History

error[E0478]: lifetime bound not satisfied
2018-12-25 15:56:47 +00:00
--> $DIR/static-lifetime.rs:3:20
2017-05-09 18:51:18 +00:00
|
2019-03-09 12:03:44 +00:00
LL | impl<'a, A: Clone> Arbitrary for ::std::borrow::Cow<'a, A> {}
2017-05-09 18:51:18 +00:00
| ^^^^^^^^^
|
note: lifetime parameter instantiated with the lifetime `'a` as defined here
2018-12-25 15:56:47 +00:00
--> $DIR/static-lifetime.rs:3:6
|
2019-03-09 12:03:44 +00:00
LL | impl<'a, A: Clone> Arbitrary for ::std::borrow::Cow<'a, A> {}
| ^^
= note: but lifetime parameter must outlive the static lifetime
2017-05-09 18:51:18 +00:00
error: aborting due to 1 previous error
2017-05-09 18:51:18 +00:00
2018-03-03 14:59:40 +00:00
For more information about this error, try `rustc --explain E0478`.