Debian Codegraph @

tests/ui/covariant.stderr

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