//@ known-bug: rust-lang/rust#125185 #![feature(return_position_impl_trait_in_trait, return_type_notation)] trait IntFactory { fn stream(&self) -> impl IntFactory + Send>; } pub fn main() {}