1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
prelude!(); use ErrorKind::*; #[test] fn test_fn_const_async() { assert_errors! { r#"pub const async fn main() {}"#, span!(4, 15), FnConstAsyncConflict }; assert_errors! { r#"pub const fn main() { yield true }"#, span!(22, 32), YieldInConst }; }