Skip to content

Commit fe5cb1a

Browse files
author
toidiu
committed
add error to the correct line in unit test
1 parent c021e53 commit fe5cb1a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test/compile-fail/outlives-associated-types.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616
// https://github.com/rust-lang/rfcs/blob/master/text/2093-infer-outlives.md#example-1-a-reference
1717

1818
#[rustc_outlives]
19-
struct Direct<'a, T> {
20-
// inferred: `T: 'a`
21-
field: &'a T //~ ERROR generic reference may outlive the data it points to
19+
struct Direct<'a, T> { //~ ERROR 19:1: 21:2: [] [E0640]
20+
field: &'a T
2221
}
2322

2423
fn main() { }

0 commit comments

Comments
 (0)