The signature of the std::rt::lang_start function has changed since version 1.19.0 to support returning a Result from the main function. This feature has been stabilized in version 1.26.0. This pull request includes support for the new signature. It enables Sulong to run code like:
The signature of the
std::rt::lang_start
function has changed since version 1.19.0 to support returning aResult
from the main function. This feature has been stabilized in version 1.26.0. This pull request includes support for the new signature. It enables Sulong to run code like:Output:
Error: "something went wrong"