Xo is experimental. The source code is not public yet; it will be soon. Read the release notes
Menu · XO0176

Docs

XO0176: `pub` before something that cannot be exported

error · reported by the parser

pub exports a declaration from its module (core 1.5). Imports (use) and test blocks cannot be exported, so pub use and pub test are rejected. Remove the pub.

Example

pub test "adds" {
  expect(1 + 1) == 2
}

Fix

test "adds" {
  expect(1 + 1) == 2
}

Run xo explain XO0176 for this text in a terminal, or see section 10.6 of the specification.