Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-17959.rs
blob: 8bf9e623605ca2ca8ba372a794870768534acbc5 [
file
] [
log
] [
blame
] [
edit
]
extern
crate core
;
use
core
::
ops
::
Drop
;
trait
Bar
{}
struct
G
<
T
:
?
Sized
>
{
_ptr
:
*
const
T
}
impl
<
T
>
Drop
for
G
<
T
>
{
//~^ ERROR `Drop` impl requires `T: Sized`
fn
drop
(&
mut
self
)
{
if
!
self
.
_ptr
.
is_null
()
{
}
}
}
fn
main
()
{
let
x
:
G
<
dyn
Bar
>;
}