rust/tests/ui/async-await/issues/issue-102206.rs
2024-02-16 20:02:50 +00:00

9 lines
118 B
Rust

//@ edition:2021
async fn foo() {}
fn main() {
std::mem::size_of_val(foo());
//~^ ERROR: mismatched types
}