aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/const_async_function.rs
blob: fb1c4dd4c1d77a130ed18a49f3733cf1895078f4 (plain)
1
2
3
// { dg-additional-options "-frust-edition=2018" }
const async fn weird_function() {}
// { dg-error "functions cannot be both .const. and .async." "" { target *-*-* } .-1 }