]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/ty/util.rs
Rollup merge of #56101 - frewsxcv:frewsxcv-dyn, r=steveklabnik
[rust.git] / src / librustc / ty / util.rs
index f0885f960516d6c7ab7301335da3a8d5aff9caee..51b197d7b990bbe58eca1e3cede8ec1caa65bbbc 100644 (file)
@@ -303,7 +303,7 @@ pub fn struct_tail(self, mut ty: Ty<'tcx>) -> Ty<'tcx> {
     /// Same as applying struct_tail on `source` and `target`, but only
     /// keeps going as long as the two types are instances of the same
     /// structure definitions.
-    /// For `(Foo<Foo<T>>, Foo<Trait>)`, the result will be `(Foo<T>, Trait)`,
+    /// For `(Foo<Foo<T>>, Foo<dyn Trait>)`, the result will be `(Foo<T>, Trait)`,
     /// whereas struct_tail produces `T`, and `Trait`, respectively.
     pub fn struct_lockstep_tails(self,
                                  source: Ty<'tcx>,