diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_middle/ty/subst.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc_middle/ty/subst.rs b/src/librustc_middle/ty/subst.rs index fd31adae499..e9fd67a748c 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<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. |
