-- in.cue --
import "list"

x: list.UniqueItems
x: [string, ...string]
x: ["x", "x"]
-- out/eval/stats --
Leaks:  0
Freed:  2
Reused: 0
Allocs: 2
Retain: 0

Unifications: 2
Conjuncts:    5
Disjuncts:    3
-- out/eval --
Errors:
x: invalid value ["x","x"] (does not satisfy list.UniqueItems): equal value ("x") at position 0 and 1:
    ./in.cue:3:4
    ./in.cue:4:4
    ./in.cue:5:4

Result:
(_|_){
  // [eval]
  x: (_|_){
    // [eval] x: invalid value ["x","x"] (does not satisfy list.UniqueItems): equal value ("x") at position 0 and 1:
    //     ./in.cue:3:4
    //     ./in.cue:4:4
    //     ./in.cue:5:4
    0: (string){ "x" }
    1: (string){ "x" }
  }
}
-- out/compile --
--- in.cue
{
  x: 〈import;list〉.UniqueItems
  x: [
    string,
    ...string,
  ]
  x: [
    "x",
    "x",
  ]
}
