diff options
author | Muhammad Mahad <mahadtxt@gmail.com> | 2023-08-05 11:27:19 +0500 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 19:00:28 +0100 |
commit | f26df74ce3c20a391bb1e23aded851f971bca585 (patch) | |
tree | a3b7e55967f4b60671abce5de0ede013a78f627b | |
parent | 77fbe55f8e68a2fbdff00500faec32f85e8c6d74 (diff) | |
download | gcc-f26df74ce3c20a391bb1e23aded851f971bca585.zip gcc-f26df74ce3c20a391bb1e23aded851f971bca585.tar.gz gcc-f26df74ce3c20a391bb1e23aded851f971bca585.tar.bz2 |
gccrs: [E0282] type annotations needed
type must be known at compile time.
gcc/rust/ChangeLog:
* typecheck/rust-hir-type-check.cc (TypeResolution::Resolve):
added errorcode.
Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
-rw-r--r-- | gcc/rust/typecheck/rust-hir-type-check.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/typecheck/rust-hir-type-check.cc b/gcc/rust/typecheck/rust-hir-type-check.cc index 4e6d457..c8e223d 100644 --- a/gcc/rust/typecheck/rust-hir-type-check.cc +++ b/gcc/rust/typecheck/rust-hir-type-check.cc @@ -57,7 +57,7 @@ TypeResolution::Resolve (HIR::Crate &crate) bool ok = infer_var->default_type (&default_type); if (!ok) { - rust_error_at (mappings->lookup_location (id), + rust_error_at (mappings->lookup_location (id), ErrorCode::E0282, "type annotations needed"); return true; } |