Add tests for tuple-like structs and dictionary-like enum variants
This commit is contained in:
parent
16d5c83d5f
commit
793d9fcb52
1 changed files with 8 additions and 0 deletions
|
|
@ -47,6 +47,14 @@ enum MoreBadness<V> {
|
|||
EvenMoreBadness(Bar<V>), //~ ERROR not implemented
|
||||
}
|
||||
|
||||
struct TupleLike(
|
||||
Foo<i32>, //~ ERROR not implemented
|
||||
);
|
||||
|
||||
enum Enum {
|
||||
DictionaryLike { field: Bar<i32> }, //~ ERROR not implemented
|
||||
}
|
||||
|
||||
trait PolyTrait<T>
|
||||
{
|
||||
fn whatever(&self, t: T) {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue