summaryrefslogtreecommitdiffstats
path: root/tests/ui/generics/generic-tag-corruption.rs
blob: 35de3c1f7124693748d53f319e7c2ad50208402a (plain)
1
2
3
4
5
6
7
8
9
10
// run-pass
#![allow(non_camel_case_types)]


// This used to cause memory corruption in stage 0.
// pretty-expanded FIXME #23616

enum thing<K> { some(#[allow(unused_tuple_struct_fields)] K), }

pub fn main() { let _x = thing::some("hi".to_string()); }