rust/tests/ui/regions/owned-implies-static.rs
2024-02-16 20:02:50 +00:00

9 lines
113 B
Rust

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