Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
cast
/
ptr-to-trait-obj-add-super-auto.rs
blob: ac8108d8ec41b30d4c1ebf6711888729daf3a012 [
file
] [
log
] [
blame
] [
edit
]
//@ check-pass
trait
Trait
:
Send
{}
impl
Trait
for
()
{}
fn
main
()
{
// This is OK: `Trait` has `Send` super trait.
&()
as
*
const
dyn
Trait
as
*
const
(
dyn
Trait
+
Send
);
}