]> git.proxmox.com Git - rustc.git/blob - src/test/ui/static-lifetime.stderr
New upstream version 1.26.0+dfsg1
[rustc.git] / src / test / ui / static-lifetime.stderr
1 error[E0478]: lifetime bound not satisfied
2 --> $DIR/static-lifetime.rs:13:20
3 |
4 LL | impl<'a, A: Clone> Arbitrary for ::std::borrow::Cow<'a, A> {} //~ ERROR lifetime bound
5 | ^^^^^^^^^
6 |
7 note: lifetime parameter instantiated with the lifetime 'a as defined on the impl at 13:1
8 --> $DIR/static-lifetime.rs:13:1
9 |
10 LL | impl<'a, A: Clone> Arbitrary for ::std::borrow::Cow<'a, A> {} //~ ERROR lifetime bound
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`.