struct LocalClient(*const ());
trait AmbiguousIfSend<A> {
fn some_item() {}
}
impl<T: ?Sized> AmbiguousIfSend<()> for T {}
impl<T: ?Sized + Send> AmbiguousIfSend<u8> for T {}
fn _assert_not_send() {
<LocalClient as AmbiguousIfSend<_>>::some_item();
// ^
// type annotations needed
// full type: fn some_item<LocalClient, {unknown}>()
// (rust-analyzer E0282)
}