From 793d9fcb5237f2148a7a40f2f17d4a8dcb6128cb Mon Sep 17 00:00:00 2001 From: Seo Sanghyeon Date: Fri, 12 Jun 2015 21:09:17 +0900 Subject: [PATCH] Add tests for tuple-like structs and dictionary-like enum variants --- .../compile-fail/trait-bounds-on-structs-and-enums.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/test/compile-fail/trait-bounds-on-structs-and-enums.rs b/src/test/compile-fail/trait-bounds-on-structs-and-enums.rs index 9a1e4ee2471f..c13f7346b117 100644 --- a/src/test/compile-fail/trait-bounds-on-structs-and-enums.rs +++ b/src/test/compile-fail/trait-bounds-on-structs-and-enums.rs @@ -47,6 +47,14 @@ enum MoreBadness { EvenMoreBadness(Bar), //~ ERROR not implemented } +struct TupleLike( + Foo, //~ ERROR not implemented +); + +enum Enum { + DictionaryLike { field: Bar }, //~ ERROR not implemented +} + trait PolyTrait { fn whatever(&self, t: T) {}