Files
pplus-web/mojo/golden/4c148bbde513a21efb74348e90c6b69b79f5411624f179e0017b0ddc975df740.json
T
2026-10-05 03:03:38 +00:00

138 lines
4.4 KiB
JSON

{
"args": "",
"askedAt": "2026-10-03T14:25:43+00:00",
"compiler": "mojo_1_1_0",
"firstItem": "manual/snippet/manual-types-7",
"key": "4c148bbde513a21efb74348e90c6b69b79f5411624f179e0017b0ddc975df740",
"mode": "run",
"raw": {
"buildResult": {
"code": 1,
"compilationOptions": [
"build",
"/app/example.mojo"
],
"downloads": [],
"execTime": 203,
"executableFilename": "/nosym/tmp/compiler-explorer-compilerIdLzKb/example",
"inputFilename": "example.mojo",
"instructionSet": "amd64",
"okToCache": true,
"processExecutionResultTime": 0.0876929983496666,
"stderr": [
{
"tag": {
"column": 1,
"file": "example.mojo",
"line": 1,
"severity": 3,
"text": "error: global variables are not supported; move this into a function body or use 'comptime' to declare a constant"
},
"text": "<source>:1:1: error: global variables are not supported; move this into a function body or use 'comptime' to declare a constant"
},
{
"text": "var s: String = \"Testing\""
},
{
"text": "^"
},
{
"tag": {
"column": 1,
"file": "example.mojo",
"line": 2,
"severity": 3,
"text": "error: expressions must not appear at file scope; move this into a function body"
},
"text": "<source>:2:1: error: expressions must not appear at file scope; move this into a function body"
},
{
"text": "s += \" Mojo strings\""
},
{
"text": "^"
},
{
"tag": {
"column": 1,
"file": "example.mojo",
"line": 4,
"severity": 3,
"text": "error: backtick identifier must not be empty; add content between the backticks"
},
"text": "<source>:4:1: error: backtick identifier must not be empty; add content between the backticks"
},
{
"text": "```"
},
{
"text": "^"
},
{
"tag": {
"column": 1,
"file": "example.mojo",
"line": 3,
"severity": 3,
"text": "error: expressions must not appear at file scope; move this into a function body"
},
"text": "<source>:3:1: error: expressions must not appear at file scope; move this into a function body"
},
{
"text": "print(s) # Testing Mojo strings"
},
{
"text": "^"
},
{
"tag": {
"column": 3,
"file": "example.mojo",
"line": 4,
"severity": 3,
"text": "error: unterminated backtick identifier"
},
"text": "<source>:4:3: error: unterminated backtick identifier"
},
{
"text": "```"
},
{
"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": 323,
"okToCache": false,
"queueTime": 5,
"stderr": [
{
"text": "Build failed"
}
],
"stdout": [],
"timedOut": false
},
"result": {
"asm": null,
"buildStderr": "<source>:1:1: error: global variables are not supported; move this into a function body or use 'comptime' to declare a constant\nvar s: String = \"Testing\"\n^\n<source>:2:1: error: expressions must not appear at file scope; move this into a function body\ns += \" Mojo strings\"\n^\n<source>:4:1: error: backtick identifier must not be empty; add content between the backticks\n```\n^\n<source>:3:1: error: expressions must not appear at file scope; move this into a function body\nprint(s) # Testing Mojo strings\n^\n<source>:4:3: error: unterminated backtick identifier\n```\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.55,
"sourceSha256": "234ebd7197d606bf415aa1e9e7638f630acda8551f0c7beb051740adce7cf0cb",
"stdin": ""
}