# CUE panics/crashes instead of reporting a clean error when evaluating
# values with cyclic field dependencies.
# https://cuelang.org/issue/306
-- in.cue --
a: 12 @test(eq, 12)
#Controller: settings: {
	controller: #Controller
} @test(err, code=structural_cycle, path=controller, contains="structural cycle", pos=[])
-- out/errors.txt --
[structural_cycle] #Controller.settings.controller: structural cycle
-- out/eval/stats --
Leaks:  0
Freed:  5
Reused: 0
Allocs: 5
Retain: 0

Unifications: 5
Conjuncts:    5
Disjuncts:    0
