gccrs: Generate error for `async` trait fucntions
commit81fcf1087ccaa83088aaed8b8be9777e66d2465d
authorKushal Pal <kushalpal109@gmail.com>
Sat, 16 Dec 2023 14:37:23 +0000 (16 20:07 +0530)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 30 Jan 2024 11:36:50 +0000 (30 12:36 +0100)
tree3391f874b98be6bf07eb497600884f14eb8a110c
parentbffceda8b9a80f4a4cea28b4e42e13ffb07264c7
gccrs: Generate error for `async` trait fucntions

Fixes #2767

gcc/rust/ChangeLog:

* checks/errors/rust-ast-validation.cc (ASTValidation::visit):
Added check for `async` function inside trait.

gcc/testsuite/ChangeLog:

* rust/compile/issue-2767.rs: New test.

Signed-off-by: Kushal Pal <kushalpal109@gmail.com>
gcc/rust/checks/errors/rust-ast-validation.cc
gcc/testsuite/rust/compile/issue-2767.rs [new file with mode: 0644]