2019-10-28 19:00:00 -05:00
|
|
|
//@ build-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2014-06-10 01:07:13 -05:00
|
|
|
// defining static with struct that contains enum
|
|
|
|
// with &'static str variant used to cause ICE
|
|
|
|
|
2015-03-22 15:13:15 -05:00
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
|
2014-06-10 01:07:13 -05:00
|
|
|
pub enum Foo {
|
|
|
|
Bar,
|
|
|
|
Baz(&'static str),
|
|
|
|
}
|
|
|
|
|
|
|
|
pub static TEST: Test = Test {
|
2014-11-06 02:05:53 -06:00
|
|
|
foo: Foo::Bar,
|
2014-06-10 01:07:13 -05:00
|
|
|
c: 'a'
|
|
|
|
};
|
|
|
|
|
|
|
|
pub struct Test {
|
|
|
|
foo: Foo,
|
|
|
|
c: char,
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|