{ "args": "", "askedAt": "2026-10-03T14:25:48+00:00", "compiler": "mojo_1_1_0", "firstItem": "manual/snippet/manual-values-lifetimes-3", "key": "e65ec32b552dba41a2a0dbec9e3d8d2bcf75e6e6be91126a44a47b1e1f4ebd3c", "mode": "run", "raw": { "buildResult": { "code": 1, "compilationOptions": [ "build", "/app/example.mojo" ], "downloads": [], "execTime": 221, "executableFilename": "/nosym/tmp/compiler-explorer-compileryT1gVW/example", "inputFilename": "example.mojo", "instructionSet": "amd64", "okToCache": true, "processExecutionResultTime": 0.07729299925267696, "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": ":1:1: error: global variables are not supported; move this into a function body or use 'comptime' to declare a constant" }, { "text": "var name_copy = list[2] # owned copy of list[2]" }, { "text": "^" }, { "tag": { "column": 1, "file": "example.mojo", "line": 3, "severity": 3, "text": "error: backtick identifier must not be empty; add content between the backticks" }, "text": ":3:1: error: backtick identifier must not be empty; add content between the backticks" }, { "text": "```" }, { "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": ":2:1: error: expressions must not appear at file scope; move this into a function body" }, { "text": "ref name_ref = list[2] # reference to list[2]" }, { "text": "^" }, { "tag": { "column": 3, "file": "example.mojo", "line": 3, "severity": 3, "text": "error: unterminated backtick identifier" }, "text": ":3: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": 320, "okToCache": false, "queueTime": 5, "stderr": [ { "text": "Build failed" } ], "stdout": [], "timedOut": false }, "result": { "asm": null, "buildStderr": ":1:1: error: global variables are not supported; move this into a function body or use 'comptime' to declare a constant\nvar name_copy = list[2] # owned copy of list[2]\n^\n:3:1: error: backtick identifier must not be empty; add content between the backticks\n```\n^\n:2:1: error: expressions must not appear at file scope; move this into a function body\nref name_ref = list[2] # reference to list[2]\n^\n:3: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": "89fa33c4756a969aa9522dd59a0b1d96be85507c79b300b86ba6da296b1a9660", "stdin": "" }