Skip to content

Commit

Permalink
update DispatchFromDyn doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeyhew committed Nov 1, 2018
1 parent f12c250 commit 48d7f8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libcore/ops/unsize.rs
Expand Up @@ -84,6 +84,9 @@ impl<T: ?Sized+Unsize<U>, U: ?Sized> CoerceUnsized<*const U> for *const T {}
/// example impl:
///
/// ```
/// # #![feature(dispatch_from_dyn, unsize)]
/// # use std::{ops::DispatchFromDyn, marker::Unsize};
/// # struct Rc<T: ?Sized>(::std::rc::Rc<T>);
/// impl<T: ?Sized, U: ?Sized> DispatchFromDyn<Rc<U>> for Rc<T>
/// where
/// T: Unsize<U>,
Expand Down

0 comments on commit 48d7f8d

Please sign in to comment.