Error codes

E0012: unclosed bracket

In a terminal: auk explain E0012 prints this page.

On this page

A (, [ or { is still open at the end of the file (or of an interpolation). The error points at the bracket that was never closed.

Wrong#

auk
fn main() {
  print(1)

Fixed#

auk
fn main() {
  print(1)
}

Common causes#

  • A missing } at the end of a function or block.
  • A missing ) after a multi-line argument list.
  • An edit that deleted a closing bracket along with other code.

Stuck on a word? Try the glossary. Got a compiler error? Look up its code. Improve this page