]> git.lizzy.rs Git - rust.git/blob - tests/ui/generics/generic-tag-corruption.rs
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[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()); }