fix docs on trait

tests were failing because I didn't wrap code snippets like  in backticks. fixed that now, so hopefully tests will pass on travis
This commit is contained in:
Michael Hewson 2018-09-21 02:16:29 -04:00
parent 82f1f9a5b4
commit c29641e067

View File

@ -85,10 +85,10 @@ impl<T: ?Sized+Unsize<U>, U: ?Sized> CoerceUnsized<*const U> for *const T {}
/// where `Self = dyn Trait` to the version where `Self = T`, the erased, sized type
/// of the underlying object.
///
/// CoerceSized is implemented for:
/// - &[T] is CoerceSized<&[T; N]> for any N
/// - &Trait is CoerceSized<&T> for any T: Trait
/// - and similarly for &mut T, *const T, *mut T, Box<T>, Rc<T>, Arc<T>
/// `CoerceSized` is implemented for:
/// - `&[T]` is `CoerceSized<&[T; N]>` for any `N`
/// - `&Trait` is `CoerceSized<&T>` for any `T: Trait`
/// - and similarly for `&mut T`, `*const T`, `*mut T`, `Box<T>`, `Rc<T>`, `Arc<T>`
#[unstable(feature = "coerce_sized", issue = "0")]
#[cfg_attr(not(stage0), lang = "coerce_sized")]
pub trait CoerceSized<T> where T: CoerceUnsized<Self> {