rust/tests/ui/nll/mir_check_cast_unsize.rs
2023-01-11 09:32:08 +00:00

11 lines
162 B
Rust

#![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() {}