From fe5cb1a5174f6054d03b6d95f84ff8808e2c89de Mon Sep 17 00:00:00 2001 From: toidiu Date: Sun, 8 Oct 2017 14:45:19 -0400 Subject: [PATCH] add error to the correct line in unit test --- src/test/compile-fail/outlives-associated-types.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/test/compile-fail/outlives-associated-types.rs b/src/test/compile-fail/outlives-associated-types.rs index f742ca81bcc..778394c9fc8 100644 --- a/src/test/compile-fail/outlives-associated-types.rs +++ b/src/test/compile-fail/outlives-associated-types.rs @@ -16,9 +16,8 @@ // https://github.com/rust-lang/rfcs/blob/master/text/2093-infer-outlives.md#example-1-a-reference #[rustc_outlives] -struct Direct<'a, T> { - // inferred: `T: 'a` - field: &'a T //~ ERROR generic reference may outlive the data it points to +struct Direct<'a, T> { //~ ERROR 19:1: 21:2: [] [E0640] + field: &'a T } fn main() { }