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