about summary refs log tree commit diff
path: root/tests/ui/coroutine/print/coroutine-print-verbose-3.rs
blob: 5dd15fc1b9516d94dd0b11096cedec0bb7a69e3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ compile-flags: -Zverbose-internals

#![feature(coroutines, coroutine_trait, stmt_expr_attributes)]

fn main() {
    let x = "Type mismatch test";
    let coroutine: () = #[coroutine]
    || {
        //~^ ERROR mismatched types
        yield 1i32;
        return x;
    };
}