]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/issue-16747.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / compile-fail / issue-16747.rs
index dd7e8a869eca9c3c9d0119f70a03cf281aed76e4..0fdb5f74e829961a575921f634449c087af01b44 100644 (file)
@@ -19,6 +19,7 @@ struct List<'a, T: ListItem<'a>> {
 //~^ ERROR the parameter type `T` may not live long enough
 //~| HELP consider adding an explicit lifetime bound
 //~| NOTE ...so that the reference type `&'a [T]` does not outlive the data it points at
+//~| HELP run `rustc --explain E0309` to see a detailed explanation
 }
 impl<'a, T: ListItem<'a>> Collection for List<'a, T> {
     fn len(&self) -> usize {