Debian Codegraph @

tests/ui/contravariant.stderr

raw
1 error: lifetime may not live long enough
2 --> tests/ui/contravariant.rs:7:5
3 |
4 6 | fn require_covariant<'a>(phantom: ContravariantPhantom<&'static str>) -> ContravariantPhantom<&'a str> {
5 | -- lifetime `'a` defined here
6 7 | phantom
7 | ^^^^^^^ returning this value requires that `'a` must outlive `'static`