]> git.lizzy.rs Git - rust.git/blob - src/test/ui/static-lifetime.stderr
Specify output filenames for compatibility with Windows
[rust.git] / src / test / ui / static-lifetime.stderr
1 error[E0478]: lifetime bound not satisfied
2   --> $DIR/static-lifetime.rs:13:20
3    |
4 13 | 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 13 | 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