2 // Check that we successfully handle methods where the `self` type has
3 // an early-bound lifetime. Issue #18208.
5 // pretty-expanded FIXME #23616
12 m: marker::PhantomData<&'a ()>
15 trait CursorNavigator {
16 fn init_cursor<'a, 'b:'a>(&'a self, cursor: &mut Cursor<'b>) -> bool;
19 struct SimpleNavigator;
21 impl CursorNavigator for SimpleNavigator {
22 fn init_cursor<'a, 'b: 'a>(&'a self, _cursor: &mut Cursor<'b>) -> bool {
28 let mut c = Cursor { m: marker::PhantomData };
29 let n = SimpleNavigator;
30 n.init_cursor(&mut c);