Sign in
android
/
toolchain
/
rustc
/
refs/heads/rust-1.73.0
/
.
/
tests
/
ui
/
impl-trait
/
in-trait
/
check-wf-on-non-defaulted-rpitit.rs
blob: 742537ffcc43bb8a0f916716000817dbd1ae88cf [
file
] [
log
] [
blame
]
#![
feature
(
return_position_impl_trait_in_trait
)]
struct
Wrapper
<
G
:
Send
>(
G
);
trait
Foo
{
fn
bar
()
->
Wrapper
<
impl
Sized
>;
//~^ ERROR `impl Sized` cannot be sent between threads safely
}
fn
main
()
{}