summaryrefslogtreecommitdiffstats
path: root/src/test/ui/binding/match-pattern-no-type-params.rs
blob: 1fc7ddda023f603ae9674edd673b3754a4f64d71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// run-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]

enum maybe<T> { nothing, just(T), }

fn foo(x: maybe<isize>) {
    match x {
        maybe::nothing => { println!("A"); }
        maybe::just(_a) => { println!("B"); }
    }
}

pub fn main() { }