about summary refs log tree commit diff
path: root/src/test/compile-fail/unsized-struct.rs
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2014-09-12 10:45:39 -0400
committerNiko Matsakis <niko@alum.mit.edu>2014-09-15 14:58:49 -0400
commitb88f86782ecd9319e0e2c875bbf1efecd66ebf41 (patch)
tree2dab9ba700a8a309e59b2835cabd6a80390618ec /src/test/compile-fail/unsized-struct.rs
parenta8d478db512803d25785a11c5b21634f8703b17f (diff)
downloadrust-b88f86782ecd9319e0e2c875bbf1efecd66ebf41.tar.gz
rust-b88f86782ecd9319e0e2c875bbf1efecd66ebf41.zip
Update error messages in compile-fail tests
Diffstat (limited to 'src/test/compile-fail/unsized-struct.rs')
-rw-r--r--src/test/compile-fail/unsized-struct.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/compile-fail/unsized-struct.rs b/src/test/compile-fail/unsized-struct.rs
index ec6aafb43f4..58aba1a2646 100644
--- a/src/test/compile-fail/unsized-struct.rs
+++ b/src/test/compile-fail/unsized-struct.rs
@@ -8,10 +8,13 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// error-pattern: instantiating a type parameter with an incompatible type
-
 struct Foo<T> { data: T }
 
 fn bar<T: Sized>() { }
 fn foo<Sized? T>() { bar::<Foo<T>>() }
+//~^ ERROR the trait `core::kinds::Sized` is not implemented
+//~^^ ERROR the trait `core::kinds::Sized` is not implemented
+// One error is for the T in Foo<T>, the other is for Foo<T> as a value
+// for bar's type parameter.
+
 fn main() { }