1 2 3 4 5 6 7 8 9
//@ check-pass #![allow(dead_code)] fn foo<T: 'static>(_: T) {} fn bar<T>(x: &'static T) { foo(x); } fn main() {}