Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate error for const trait functions
Fixes issue #2040 Add check to assure that a function cant be declared const inside trait impl blocks. gcc/rust/ChangeLog: * checks/errors/rust-ast-validation.cc (ASTValidation::visit): Add check for const funtion. gcc/testsuite/ChangeLog: * rust/compile/issue-2040.rs: New test. Signed-off-by: Nobel Singh <[email protected]>
- Loading branch information