about summary refs log tree commit diff
path: root/src/test/compile-fail/trait-bounds-not-on-struct.rs
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2014-11-20 15:08:02 -0500
committerNiko Matsakis <niko@alum.mit.edu>2014-11-26 11:42:06 -0500
commitf4e29e7e9aa1da4fc91a6074b0e4df44a2986517 (patch)
tree0da944aff45bf45cd6e085b92aa78110d62cfb20 /src/test/compile-fail/trait-bounds-not-on-struct.rs
parent74a1041a4d7ae08d223f5ec623f6a698962d5667 (diff)
downloadrust-f4e29e7e9aa1da4fc91a6074b0e4df44a2986517.tar.gz
rust-f4e29e7e9aa1da4fc91a6074b0e4df44a2986517.zip
Fixup various places that were doing `&T+'a` and do `&(T+'a)`
Diffstat (limited to 'src/test/compile-fail/trait-bounds-not-on-struct.rs')
-rw-r--r--src/test/compile-fail/trait-bounds-not-on-struct.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/trait-bounds-not-on-struct.rs b/src/test/compile-fail/trait-bounds-not-on-struct.rs
index 0a5909ff2ef..081efa429c3 100644
--- a/src/test/compile-fail/trait-bounds-not-on-struct.rs
+++ b/src/test/compile-fail/trait-bounds-not-on-struct.rs
@@ -11,6 +11,6 @@
 
 struct Foo;
 
-fn foo(_x: Box<Foo + Send>) { } //~ ERROR kind bounds can only be used on trait types
+fn foo(_x: Box<Foo + Send>) { } //~ ERROR expected a reference to a trait
 
 fn main() { }