Add tests for #2818

This commit is contained in:
topecongiro 2018-06-30 19:20:47 +09:00
parent bc16d8864a
commit 008aa88d6e
2 changed files with 12 additions and 0 deletions

View file

@ -281,3 +281,7 @@ struct Test {
pub join: Vec<String>,
#[serde(default)] pub tls: bool,
}
// #2818
struct Paren((i32)) where i32: Trait;
struct Parens((i32, i32)) where i32: Trait;

View file

@ -334,3 +334,11 @@ struct Test {
#[serde(default)]
pub tls: bool,
}
// #2818
struct Paren((i32))
where
i32: Trait;
struct Parens((i32, i32))
where
i32: Trait;