Guest User

Untitled

a guest
Jan 16th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. the type placeholder `_` is not allowed within types on item
  2. signatures
  3.  
  4. // The type parameters are:
  5. // O: this Router's data type
  6. // B: The parent router's data type
  7. pub struct DataRouter<'a, O, B = O> where O: 'a, B: 'a {
  8. parent: Option<&'a DataRouter<'a, B, _>>, // Here the problem `_`
  9. range: Option<Range<usize>>,
  10. data: Option<O>
  11. }
Add Comment
Please, Sign In to add comment