]>
Commit | Line | Data |
---|---|---|
60c5eb7d | 1 | // build-pass |
0bf4aa26 | 2 | #![allow(dead_code)] |
1a4d82fc JJ |
3 | // defining static with struct that contains enum |
4 | // with &'static str variant used to cause ICE | |
223e47cc | 5 | |
c34b1796 AL |
6 | // pretty-expanded FIXME #23616 |
7 | ||
1a4d82fc JJ |
8 | pub enum Foo { |
9 | Bar, | |
10 | Baz(&'static str), | |
223e47cc LB |
11 | } |
12 | ||
1a4d82fc JJ |
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, | |
223e47cc LB |
21 | } |
22 | ||
23 | fn main() {} |