From 008aa88d6efdbcd3668025e67a3b5f9fc08bd086 Mon Sep 17 00:00:00 2001 From: topecongiro Date: Sat, 30 Jun 2018 19:20:47 +0900 Subject: [PATCH] Add tests for #2818 --- tests/source/structs.rs | 4 ++++ tests/target/structs.rs | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/tests/source/structs.rs b/tests/source/structs.rs index 56471f1d7e4..d4ee741d4d3 100644 --- a/tests/source/structs.rs +++ b/tests/source/structs.rs @@ -281,3 +281,7 @@ struct Test { pub join: Vec, #[serde(default)] pub tls: bool, } + +// #2818 +struct Paren((i32)) where i32: Trait; +struct Parens((i32, i32)) where i32: Trait; diff --git a/tests/target/structs.rs b/tests/target/structs.rs index 368650bb6a8..829a4de5315 100644 --- a/tests/target/structs.rs +++ b/tests/target/structs.rs @@ -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; -- 2.44.0