about summary refs log tree commit diff
path: root/src/test/compile-fail/issue-5997-struct.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/issue-5997-struct.rs')
-rw-r--r--src/test/compile-fail/issue-5997-struct.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/compile-fail/issue-5997-struct.rs b/src/test/compile-fail/issue-5997-struct.rs
index 40be2f04cb4..e9cfafc98df 100644
--- a/src/test/compile-fail/issue-5997-struct.rs
+++ b/src/test/compile-fail/issue-5997-struct.rs
@@ -9,8 +9,7 @@
 // except according to those terms.
 
 fn f<T>() -> bool {
-    struct S(T); //~ ERROR type name `T` is undefined or not in scope
-    //~^ ERROR can't use type parameters from outer function; try using
+    struct S(T); //~ ERROR can't use type parameters from outer function; try using
 
     true
 }