Fix rustdoc warnings about invalid Rust syntax
This commit is contained in:
parent
a835b483fe
commit
c877ff3664
5 changed files with 14 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue