summary refs log tree commit diff
path: root/src/test/ui/issues/issue-5353.rs
blob: 808b73ec72f75674b21ca1af178017716d16cb6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// compile-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() {}