2025-05-18 14:50:30 +02:00
|
|
|
trait TypedClient {
|
|
|
|
|
fn publish_typed<F>(&self) -> impl Sized
|
|
|
|
|
where
|
|
|
|
|
F: Clone;
|
|
|
|
|
}
|
|
|
|
|
impl TypedClient for () {
|
|
|
|
|
fn publish_typed<F>(&self) -> impl Sized {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
().publish_typed();
|
2025-05-20 16:55:09 -03:00
|
|
|
//~^ ERROR type annotations needed [E0283]
|
2025-05-18 14:50:30 +02:00
|
|
|
}
|