about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-03-05 01:32:48 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-03-05 12:38:36 +0530
commit931c55ab00c6e641faeff2a209ac802f00005500 (patch)
treef700e4ff6719d6e1ae323abdde7042a806489b42
parent3d3ccfff9e6d9d99b7a0f8f9421497d29bcf0fb9 (diff)
downloadrust-931c55ab00c6e641faeff2a209ac802f00005500.tar.gz
rust-931c55ab00c6e641faeff2a209ac802f00005500.zip
Move span in error (fixup #22764)
-rw-r--r--src/test/compile-fail/issue-16747.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/compile-fail/issue-16747.rs b/src/test/compile-fail/issue-16747.rs
index a213234b89b..64334fe4392 100644
--- a/src/test/compile-fail/issue-16747.rs
+++ b/src/test/compile-fail/issue-16747.rs
@@ -18,11 +18,10 @@ trait Collection { fn len(&self) -> usize; }
 
 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
+//~^^ NOTE ...so that the reference type `&'a [T]` does not outlive the data it points at
     slice: &'a [T]
 }
-
+//~^ HELP consider adding an explicit lifetime bound
 impl<'a, T: ListItem<'a>> Collection for List<'a, T> {
     fn len(&self) -> usize {
         0