]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unsized/issue-91803.rs
Rollup merge of #103163 - SUPERCILEX:uninit-array-assume2, r=scottmcm
[rust.git] / src / test / 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() {}