]> git.lizzy.rs Git - rust.git/blob - tests/ui/unsized/issue-91803.rs
Rollup merge of #103236 - tspiteri:redoc-int-adc-sbb, r=m-ou-se
[rust.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() {}