// A type variable of a definition must be one of its parameters (E0211). type Pair = //~^ ERROR E0211 type variable `b` must be declared as a parameter of `Pair` (a, b) type Box { Box(a) , Other(b) //~^ ERROR E0211 type variable `b` must be declared as a parameter of `Box` } trait Describe { fn describe :: x: a -> String } impl Describe< //~^ ERROR E0211 type variable `b` in the `where` clause does not appear in the impl's type Box > where Show { fn describe :: x: Box -> String { "box" } }