]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/mir_check_cast_unsize.rs
Auto merge of #105145 - Ayush1325:sequential-remote-server, r=Mark-Simulacrum
[rust.git] / src / test / ui / nll / mir_check_cast_unsize.rs
1 #![allow(dead_code)]
2
3 use std::fmt::Debug;
4
5 fn bar<'a>(x: &'a u32) -> &'static dyn Debug {
6     x
7     //~^ ERROR lifetime may not live long enough
8 }
9
10 fn main() {}