error[E0624]: associated function `new_static` is private
--> tests/trybuild/fail/wrong_api_version_setup_builder.rs:34:51
|
34 | let topic = Topic::<PubSub<ForeignBody>>::new_static("foreign/body");
| ^^^^^^^^^^ private associated function
|
::: src/bus/topic.rs
|
| pub(crate) fn new_static(key: &'static str) -> Self {
| --------------------------------------------------- private associated function defined here
error[E0308]: mismatched types
--> tests/trybuild/fail/wrong_api_version_setup_builder.rs:35:38
|
35 | let _foreign = ctx.publisher(topic).await?;
| --------- ^^^^^ expected `Topic<PubSub<Target>>`, found `Topic<PubSub<ForeignBody>>`
| |
| arguments to this method are incorrect
|
= note: expected struct `Topic<PubSub<phoxal::api::y2026_1::drive::Target>>`
found struct `Topic<PubSub<ForeignBody>>`
note: method defined here
--> src/runtime/context.rs
|
| pub async fn publisher<B>(&self, topic: Topic<PubSub<B>>) -> crate::Result<Publisher<B>>
| ^^^^^^^^^