2014-07-09 07:46:09 -05:00
|
|
|
//@ ignore-lldb
|
|
|
|
|
2014-02-06 21:57:09 -06:00
|
|
|
//@ compile-flags:-g
|
2014-04-24 04:35:48 -05:00
|
|
|
// gdb-command:run
|
2014-01-02 08:38:57 -06:00
|
|
|
|
|
|
|
// Test whether compiling a recursive enum definition crashes debug info generation. The test case
|
|
|
|
// is taken from issue #11083.
|
|
|
|
|
2014-10-27 17:37:07 -05:00
|
|
|
#![allow(unused_variables)]
|
2015-09-19 15:33:47 -05:00
|
|
|
#![feature(omit_gdb_pretty_printer_section)]
|
2014-12-03 16:48:18 -06:00
|
|
|
#![omit_gdb_pretty_printer_section]
|
2014-01-02 08:38:57 -06:00
|
|
|
|
|
|
|
pub struct Window<'a> {
|
|
|
|
callbacks: WindowCallbacks<'a>
|
|
|
|
}
|
|
|
|
|
|
|
|
struct WindowCallbacks<'a> {
|
2015-01-05 07:23:17 -06:00
|
|
|
pos_callback: Option<Box<FnMut(&Window, i32, i32) + 'a>>,
|
2014-01-02 08:38:57 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let x = WindowCallbacks { pos_callback: None };
|
|
|
|
}
|