]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-13214.rs
Rollup merge of #91804 - woppopo:const_clone, r=oli-obk
[rust.git] / src / test / ui / issues / issue-13214.rs
1 // build-pass
2 #![allow(dead_code)]
3 // defining static with struct that contains enum
4 // with &'static str variant used to cause ICE
5
6 // pretty-expanded FIXME #23616
7
8 pub enum Foo {
9     Bar,
10     Baz(&'static str),
11 }
12
13 pub static TEST: Test = Test {
14     foo: Foo::Bar,
15     c: 'a'
16 };
17
18 pub struct Test {
19     foo: Foo,
20     c: char,
21 }
22
23 fn main() {}