]> git.lizzy.rs Git - rust.git/blobdiff - tests/source/structs.rs
Add tests for #2818
[rust.git] / tests / source / structs.rs
index 56471f1d7e42f39d78b4f09aafc514d074c69201..d4ee741d4d340abcbb295a4ee7a58b09a0970efd 100644 (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;