1 An item which isn't a unit struct, a variant, nor a constant has been used as a
4 Erroneous code example:
10 fn turtle(&self) -> u32 { 0 }
14 Tortoise::turtle => {} // Error!
17 if let Tortoise::turtle = 0u32 {} // Same error!
20 If you want to match against a value returned by a method, you need to bind the
27 fn turtle(&self) -> u32 { 0 }
31 x if x == Tortoise.turtle() => {} // Bound into `x` then we compare it!