Error codes

E0013: unmatched closing bracket

In a terminal: auk explain E0013 prints this page.

On this page

A closing ), ] or } doesn't match the innermost open bracket, or there is no open bracket for it to close. The note says which bracket is still open and where.

Wrong#

auk
fn main() {
  print([1, 2)
}

Fixed#

auk
fn main() {
  print([1, 2])
}

Common causes#

  • Brackets closed in the wrong order: ([1, 2)].
  • One bracket too many after an edit.
  • A missing closer earlier on, so a later one pairs with the wrong opener.

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