• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // ignore-lldb
2 
3 // compile-flags:-g
4 // gdb-command:run
5 
6 // Test whether compiling a recursive enum definition crashes debug info generation. The test case
7 // is taken from issue #11083.
8 
9 #![allow(unused_variables)]
10 #![feature(omit_gdb_pretty_printer_section)]
11 #![omit_gdb_pretty_printer_section]
12 
13 pub struct Window<'a> {
14     callbacks: WindowCallbacks<'a>
15 }
16 
17 struct WindowCallbacks<'a> {
18     pos_callback: Option<Box<FnMut(&Window, i32, i32) + 'a>>,
19 }
20 
main()21 fn main() {
22     let x = WindowCallbacks { pos_callback: None };
23 }
24