Skip to content

Commit 793d9fc

Browse files
committed
Add tests for tuple-like structs and dictionary-like enum variants
1 parent 16d5c83 commit 793d9fc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/test/compile-fail/trait-bounds-on-structs-and-enums.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ enum MoreBadness<V> {
4747
EvenMoreBadness(Bar<V>), //~ ERROR not implemented
4848
}
4949

50+
struct TupleLike(
51+
Foo<i32>, //~ ERROR not implemented
52+
);
53+
54+
enum Enum {
55+
DictionaryLike { field: Bar<i32> }, //~ ERROR not implemented
56+
}
57+
5058
trait PolyTrait<T>
5159
{
5260
fn whatever(&self, t: T) {}

0 commit comments

Comments
 (0)