2 // pretty-expanded FIXME #23616
4 struct Cursor<'a>(::std::marker::PhantomData<&'a ()>);
6 trait CursorNavigator {
7 fn init_cursor<'a, 'b:'a>(&'a self, cursor: &mut Cursor<'b>) -> bool;
10 struct SimpleNavigator;
12 impl CursorNavigator for SimpleNavigator {
13 fn init_cursor<'a, 'b: 'a>(&'a self, _cursor: &mut Cursor<'b>) -> bool {
19 let mut c = Cursor(::std::marker::PhantomData);
20 let n = SimpleNavigator;
21 n.init_cursor(&mut c);