]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binding/match-pattern-no-type-params.rs
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
[rust.git] / src / test / ui / binding / match-pattern-no-type-params.rs
1 // run-pass
2 #![allow(dead_code)]
3 #![allow(non_camel_case_types)]
4
5 enum maybe<T> { nothing, just(T), }
6
7 fn foo(x: maybe<isize>) {
8     match x {
9         maybe::nothing => { println!("A"); }
10         maybe::just(_a) => { println!("B"); }
11     }
12 }
13
14 pub fn main() { }