{ "args": "", "askedAt": "2026-10-03T22:45:53+00:00", "attempts": 1, "compiler": "mojo_1_1_0", "firstItem": "stress/lambda-capture-param", "key": "d9429b0693ed02014747208344d46eafd8e38aef656ec08ffb464c2132d49c71", "mode": "run", "raw": { "buildResult": { "code": 1, "compilationOptions": [ "build", "/app/example.mojo" ], "downloads": [], "execTime": 346, "executableFilename": "/nosym/tmp/compiler-explorer-compiler6PHxPG/example", "inputFilename": "example.mojo", "instructionSet": "amd64", "okToCache": true, "processExecutionResultTime": 0.1304669976234436, "stderr": [ { "tag": { "column": 21, "file": "example.mojo", "line": 7, "severity": 3, "text": "error: invalid call to '__call__': value cannot be converted from type value '$0' to an instance of '$0'; did you mean to instantiate '$0'?" }, "text": ":7:21: error: invalid call to '__call__': value cannot be converted from type value '$0' to an instance of '$0'; did you mean to instantiate '$0'?" }, { "text": " out.append(f(x))" }, { "text": " ~^~~" }, { "text": ":0: note: function declared here" }, { "tag": { "column": 25, "file": "example.mojo", "line": 14, "severity": 3, "text": "error: invalid call to 'apply_all': value passed to 'f' cannot be converted from 'def(x: Int) -> Int' to 'def(Int) -> Int'" }, "text": ":14:25: error: invalid call to 'apply_all': value passed to 'f' cannot be converted from 'def(x: Int) -> Int' to 'def(Int) -> Int'" }, { "text": " print(apply_all(xs, lambda (x: Int) -> Int: x + offset))" }, { "text": " ~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~" }, { "tag": { "column": 5, "file": "example.mojo", "line": 4, "severity": 1, "text": "note: function declared here" }, "text": ":4:5: note: function declared here" }, { "text": "def apply_all(xs: List[Int], f: def(Int) -> Int) -> List[Int]:" }, { "text": " ^" }, { "text": "/opt/compiler-explorer/mojo-1.1.0/bin/mojo: error: failed to parse the provided Mojo source module" } ], "stdout": [], "timedOut": false, "truncated": false }, "code": -1, "didExecute": false, "execTime": 421, "okToCache": false, "queueTime": 5, "stderr": [ { "text": "Build failed" } ], "stdout": [], "timedOut": false }, "result": { "asm": null, "buildStderr": ":7:21: error: invalid call to '__call__': value cannot be converted from type value '$0' to an instance of '$0'; did you mean to instantiate '$0'?\n out.append(f(x))\n ~^~~\n:0: note: function declared here\n:14:25: error: invalid call to 'apply_all': value passed to 'f' cannot be converted from 'def(x: Int) -> Int' to 'def(Int) -> Int'\n print(apply_all(xs, lambda (x: Int) -> Int: x + offset))\n ~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~\n:4:5: note: function declared here\ndef apply_all(xs: List[Int], f: def(Int) -> Int) -> List[Int]:\n ^\n/opt/compiler-explorer/mojo-1.1.0/bin/mojo: error: failed to parse the provided Mojo source module", "compiled": false, "executed": false, "exitCode": -1, "stderr": "Build failed", "stdout": "", "timedOut": false }, "seconds": 0.72, "sourceSha256": "5fce7398e073d51ec5dd985e9a4430882951ae3dba577d3d3269b43a1588847a", "stdin": "" }