about summary refs log tree commit diff
path: root/tests/ui/enum/issue-19340-1.rs
blob: 9793692344261ef53e50d9a84d95c73d8d7f4ee9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ run-pass
#![allow(unused_variables)]
//@ aux-build:issue-19340-1.rs


extern crate issue_19340_1 as lib;

use lib::Homura;

fn main() {
    let homura = Homura::Madoka { name: "Kaname".to_string() };

    match homura {
        Homura::Madoka { name } => (),
    };
}