Fix rustdoc warnings about invalid Rust syntax

This commit is contained in:
Camelid 2020-10-04 19:08:40 -07:00
parent a835b483fe
commit c877ff3664
5 changed files with 14 additions and 8 deletions

View file

@ -38,13 +38,16 @@ pub struct OpaqueTypeDecl<'tcx> {
/// then `substs` would be `['a, T]`.
pub substs: SubstsRef<'tcx>,
/// The span of this particular definition of the opaque type. So
/// The span of this particular definition of the opaque type. So
/// for example:
///
/// ```
/// type Foo = impl Baz;
/// fn bar() -> Foo {
/// ^^^ This is the span we are looking for!
/// // ^^^ This is the span we are looking for!
/// // ...
/// # unimplemented!()
/// }
/// ```
///
/// In cases where the fn returns `(impl Trait, impl Trait)` or