1
Fork 0

Rollup merge of #73748 - jyn514:doc-fix, r=Manishearth

Add code block to code in documentation of `List::rebase_onto`

Closes https://github.com/rust-lang/rust/issues/73676

@bors rollup=always
This commit is contained in:
Manish Goregaokar 2020-06-26 00:39:19 -07:00 committed by GitHub
commit a7eee3cca0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -336,8 +336,10 @@ impl<'a, 'tcx> InternalSubsts<'tcx> {
///
/// For example given:
///
/// ```no_run
/// trait X<S> { fn f<T>(); }
/// impl<U> X<U> for U { fn f<V>() {} }
/// ```
///
/// * If `self` is `[Self, S, T]`: the identity substs of `f` in the trait.
/// * If `source_ancestor` is the def_id of the trait.