]> git.lizzy.rs Git - rust.git/blob - tests/ui/generics/generic-tag-corruption.rs
Rollup merge of #106709 - khuey:disable_split_dwarf_inlining_by_default, r=davidtwco
[rust.git] / tests / ui / generics / generic-tag-corruption.rs
1 // run-pass
2 #![allow(non_camel_case_types)]
3
4
5 // This used to cause memory corruption in stage 0.
6 // pretty-expanded FIXME #23616
7
8 enum thing<K> { some(#[allow(unused_tuple_struct_fields)] K), }
9
10 pub fn main() { let _x = thing::some("hi".to_string()); }