fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
572 B16 linesraw
1error[E0478]: lifetime bound not satisfied
2  --> $DIR/static-lifetime.rs:3:20
3   |
4LL | impl<'a, A: Clone> Arbitrary for ::std::borrow::Cow<'a, A> {}
5   |                    ^^^^^^^^^
6   |
7note: lifetime parameter instantiated with the lifetime 'a as defined on the impl at 3:6
8  --> $DIR/static-lifetime.rs:3:6
9   |
10LL | impl<'a, A: Clone> Arbitrary for ::std::borrow::Cow<'a, A> {}
11   |      ^^
12   = note: but lifetime parameter must outlive the static lifetime
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0478`.