Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
ui
/
unsized
/
issue-91803.rs
blob: 8d35c7582b82320429aa7b8a9f1777615a8c2cb2 [
file
] [
log
] [
blame
]
trait
Foo
<
'
a
>
{}
fn
or
<
'a>(first: &'
static
dyn
Foo
<
'a>) -> dyn Foo<'
a
>
{
//~^ ERROR return type cannot be a trait object without pointer indirection
return
Box
::
new
(
panic
!());
}
fn
main
()
{}