rust/tests/ui/generics/generic-tag-corruption.rs

11 lines
239 B
Rust

//@ 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(dead_code)] K), }
pub fn main() { let _x = thing::some("hi".to_string()); }