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 Error is produced if a trait function is declared const. gcc/rust/ChangeLog: * typecheck/rust-hir-type-check-implitem.cc (TypeCheckImplItemWithTrait::visit): Produce error if trait funtion is found to be const. gcc/testsuite/ChangeLog: * rust/compile/issue-2040.rs: New test. Signed-off-by: Nobel Singh <[email protected]>
- Loading branch information