Debian Codegraph @

debian/missing-sources/glib/tests/regex_compiletest/05-variance.rs

raw
1 use glib::MatchInfo;
2
3 // pass
4 fn covariance_check<'short>(input: MatchInfo<'static>) -> MatchInfo<'short> {
5 input
6 }
7
8 // fail
9 fn contravariance_check<'short>(input: MatchInfo<'short>) -> MatchInfo<'static> {
10 input
11 }
12
13 fn main() {}