From d279b3c260875fcb7962c4bb7ba2e90b748476e8 Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Thu, 25 Jun 2020 22:03:31 -0400 Subject: [PATCH] Add code block to code in documentation of `List::rebase_onto` --- src/librustc_middle/ty/subst.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/librustc_middle/ty/subst.rs b/src/librustc_middle/ty/subst.rs index fd31adae499fe..e9fd67a748c85 100644 --- a/src/librustc_middle/ty/subst.rs +++ b/src/librustc_middle/ty/subst.rs @@ -336,8 +336,10 @@ impl<'a, 'tcx> InternalSubsts<'tcx> { /// /// For example given: /// + /// ```no_run /// trait X { fn f(); } /// impl X for U { fn f() {} } + /// ``` /// /// * If `self` is `[Self, S, T]`: the identity substs of `f` in the trait. /// * If `source_ancestor` is the def_id of the trait.