summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lifetimes/auxiliary/lifetime_bound_will_change_warning_lib.rs
blob: 58f1b81cf4d5601660a5642bbd3bca0e91fea7d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
#![crate_type = "rlib"]

// Helper for testing that we get suitable warnings when lifetime
// bound change will cause breakage.

pub fn just_ref(x: &Fn()) {
}

pub fn ref_obj(x: &Box<Fn()>) {
    // this will change to &Box<Fn()+'static>...
}