]> git.proxmox.com Git - rustc.git/blob - tests/ui/unsized/issue-91803.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / unsized / issue-91803.rs
1 trait Foo<'a> {}
2
3 fn or<'a>(first: &'static dyn Foo<'a>) -> dyn Foo<'a> {
4 //~^ ERROR return type cannot have an unboxed trait object
5 return Box::new(panic!());
6 }
7
8 fn main() {}