rust/tests/ui/regions/owned-implies-static.rs

9 lines
113 B
Rust

//@ run-pass
//@ pretty-expanded FIXME #23616
fn f<T: 'static>(_x: T) {}
pub fn main() {
f(Box::new(5));
}