]> git.lizzy.rs Git - rust.git/blob - src/test/ui/static/static-lifetime.stderr
Rollup merge of #106043 - c410-f3r:moar-errors, r=petrochenkov
[rust.git] / src / test / ui / static / static-lifetime.stderr
1 error[E0478]: lifetime bound not satisfied
2   --> $DIR/static-lifetime.rs:3:20
3    |
4 LL | impl<'a, A: Clone> Arbitrary for ::std::borrow::Cow<'a, A> {}
5    |                    ^^^^^^^^^
6    |
7 note: lifetime parameter instantiated with the lifetime `'a` as defined here
8   --> $DIR/static-lifetime.rs:3:6
9    |
10 LL | impl<'a, A: Clone> Arbitrary for ::std::borrow::Cow<'a, A> {}
11    |      ^^
12    = note: but lifetime parameter must outlive the static lifetime
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0478`.