2 #![allow(unused_variables)]
3 #![allow(non_snake_case)]
4 #![deny(unreachable_patterns)]
11 fn is_empty<T>(s: Stack<T>) -> bool {
14 //~^ WARN pattern binding `Nil` is named the same as one of the variants of the type `Stack`
16 //~^ ERROR unreachable pattern