title: InvalidLit layout: article

InvalidLit occurs when a composite literal expression does not match its
type.

Example:
 type P *struct{
 	x int
 }
 var _ = P {}