1 2 3 4 5 6 7 8 9 10
#![allow(dead_code)] use std::fmt::Debug; fn bar<'a>(x: &'a u32) -> &'static dyn Debug { x //~^ ERROR lifetime may not live long enough } fn main() {}