]> git.lizzy.rs Git - rust.git/blob - tests/ui/lifetimes/auxiliary/lifetime_bound_will_change_warning_lib.rs
add tests for 107090
[rust.git] / tests / ui / lifetimes / auxiliary / lifetime_bound_will_change_warning_lib.rs
1 #![crate_type = "rlib"]
2
3 // Helper for testing that we get suitable warnings when lifetime
4 // bound change will cause breakage.
5
6 pub fn just_ref(x: &Fn()) {
7 }
8
9 pub fn ref_obj(x: &Box<Fn()>) {
10     // this will change to &Box<Fn()+'static>...
11 }