about summary refs log tree commit diff
path: root/tests/ui/pattern/premature-match-scrutinee-temporary-drop-10683.rs
blob: a4dfa56117c2bd9e08f3e8dff512dd5a9910e3b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//! Regression test for https://github.com/rust-lang/rust/issues/10683

//@ run-pass

static NAME: &'static str = "hello world";

fn main() {
    match &*NAME.to_ascii_lowercase() {
        "foo" => {}
        _ => {}
    }
}