summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-5353.rs
blob: 1d6813d5a39bd814a71537e9b9555e3e3cec22df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// check-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

const INVALID_ENUM : u32 = 0;
const INVALID_VALUE : u32 = 1;

fn gl_err_str(err: u32) -> String
{
  match err
  {
    INVALID_ENUM => { "Invalid enum".to_string() },
    INVALID_VALUE => { "Invalid value".to_string() },
    _ => { "Unknown error".to_string() }
  }
}

pub fn main() {}