Skip to content

Commit 931c55a

Browse files
committed
Move span in error (fixup rust-lang#22764)
1 parent 3d3ccff commit 931c55a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test/compile-fail/issue-16747.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ trait Collection { fn len(&self) -> usize; }
1818

1919
struct List<'a, T: ListItem<'a>> {
2020
//~^ ERROR the parameter type `T` may not live long enough
21-
//~^^ HELP consider adding an explicit lifetime bound
22-
//~^^^ NOTE ...so that the reference type `&'a [T]` does not outlive the data it points at
21+
//~^^ NOTE ...so that the reference type `&'a [T]` does not outlive the data it points at
2322
slice: &'a [T]
2423
}
25-
24+
//~^ HELP consider adding an explicit lifetime bound
2625
impl<'a, T: ListItem<'a>> Collection for List<'a, T> {
2726
fn len(&self) -> usize {
2827
0

0 commit comments

Comments
 (0)