1 2 3 4 5 6 7 8 9 10 11 12 13
// SPDX-License-Identifier: Apache-2.0 OR MIT #![feature(coroutines)] use futures_async_stream::stream; #[stream(item = i32)] async fn foo() { let a: i32 = "a"; //~ ERROR mismatched types yield 1; } fn main() {}