diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-13214.rs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-13214.rs b/src/test/ui/issues/issue-13214.rs new file mode 100644 index 000000000..0cf8d0675 --- /dev/null +++ b/src/test/ui/issues/issue-13214.rs @@ -0,0 +1,23 @@ +// build-pass +#![allow(dead_code)] +// defining static with struct that contains enum +// with &'static str variant used to cause ICE + +// pretty-expanded FIXME #23616 + +pub enum Foo { + Bar, + Baz(&'static str), +} + +pub static TEST: Test = Test { + foo: Foo::Bar, + c: 'a' +}; + +pub struct Test { + foo: Foo, + c: char, +} + +fn main() {} |