diff options
author | Muhammad Mahad <mahadtxt@gmail.com> | 2023-07-17 12:32:17 +0500 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-07-17 09:40:02 +0000 |
commit | d7651385b69495089ccb37cb0c76be12aeeec7e7 (patch) | |
tree | 17beef9b0b1086fd5aeaaed9e42ad56479367af8 /gcc/rust/backend/rust-compile-fnparam.cc | |
parent | 95e8c2d54f4b865206766db74c178ba134a1ab9d (diff) | |
download | gcc-d7651385b69495089ccb37cb0c76be12aeeec7e7.zip gcc-d7651385b69495089ccb37cb0c76be12aeeec7e7.tar.gz gcc-d7651385b69495089ccb37cb0c76be12aeeec7e7.tar.bz2 |
gccrs: [E0423] expected function, tuple struct or tuple variant, found struct
Give error when an identifier was used like a function
name or a value was expected and the identifier exists
but it belongs to a different namespace.
gcc/rust/ChangeLog:
* typecheck/rust-tyty-call.cc (TypeCheckCallExpr::visit):
called error function.
gcc/testsuite/ChangeLog:
* rust/compile/found_struct.rs: New test.
Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-fnparam.cc')
0 files changed, 0 insertions, 0 deletions