Skip to content

Commit d279b3c

Browse files
committed
Add code block to code in documentation of List::rebase_onto
1 parent 9f3c96b commit d279b3c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc_middle/ty/subst.rs

+2
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,10 @@ impl<'a, 'tcx> InternalSubsts<'tcx> {
336336
///
337337
/// For example given:
338338
///
339+
/// ```no_run
339340
/// trait X<S> { fn f<T>(); }
340341
/// impl<U> X<U> for U { fn f<V>() {} }
342+
/// ```
341343
///
342344
/// * If `self` is `[Self, S, T]`: the identity substs of `f` in the trait.
343345
/// * If `source_ancestor` is the def_id of the trait.

0 commit comments

Comments
 (0)