]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-13214.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-13214.rs
CommitLineData
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
8pub enum Foo {
9 Bar,
10 Baz(&'static str),
223e47cc
LB
11}
12
1a4d82fc
JJ
13pub static TEST: Test = Test {
14 foo: Foo::Bar,
15 c: 'a'
16};
17
18pub struct Test {
19 foo: Foo,
20 c: char,
223e47cc
LB
21}
22
23fn main() {}