Constructs an error indicating incompatible ranks.
LayoutError.rank(Layout a, Layout b, [String? name]) : super( '$a and $b have incompatible rank: ${a.rank} and ${b.rank}', name);