File: 05-variance.stderr

package info (click to toggle)
rust-glib 0.20.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,308 kB
  • sloc: makefile: 18
file content (7 lines) | stat: -rw-r--r-- 347 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
error: lifetime may not live long enough
  --> tests/regex_compiletest/05-variance.rs:10:5
   |
9  | fn contravariance_check<'short>(input: MatchInfo<'short>) -> MatchInfo<'static> {
   |                         ------ lifetime `'short` defined here
10 |     input
   |     ^^^^^ returning this value requires that `'short` must outlive `'static`