diff options
-rw-r--r-- | gcc/rust/ast/rust-ast-full-test.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/rust/ast/rust-ast-full-test.cc b/gcc/rust/ast/rust-ast-full-test.cc index dd55e1d..5d32139 100644 --- a/gcc/rust/ast/rust-ast-full-test.cc +++ b/gcc/rust/ast/rust-ast-full-test.cc @@ -3595,7 +3595,8 @@ ExternalFunctionItem::as_string () const } // add type on new line - str += "\n (return) Type: " + return_type->as_string (); + str += "\n (return) Type: " + + (has_return_type () ? return_type->as_string () : "()"); // where clause str += "\n Where clause: "; |