diff options
| author | toidiu <toidiu@protonmail.com> | 2017-10-08 14:45:19 -0400 |
|---|---|---|
| committer | toidiu <toidiu@protonmail.com> | 2017-10-16 14:26:17 -0400 |
| commit | fe5cb1a5174f6054d03b6d95f84ff8808e2c89de (patch) | |
| tree | 4bc2c5c67ded076b9acf5ae3645794c41ca6ed8d | |
| parent | c021e5303f7db901a962b7c650ad5b2206801d9c (diff) | |
| download | rust-fe5cb1a5174f6054d03b6d95f84ff8808e2c89de.tar.gz rust-fe5cb1a5174f6054d03b6d95f84ff8808e2c89de.zip | |
add error to the correct line in unit test
| -rw-r--r-- | src/test/compile-fail/outlives-associated-types.rs | 5 |
1 files 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() { } |
