summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIvan Tham <pickfire@riseup.net>2021-03-07 14:22:43 +0800
committerIvan Tham <pickfire@riseup.net>2021-03-07 14:22:43 +0800
commitebe7f82bb2c53f980115c0f3df1f3602bf63e7dc (patch)
treeb7c28b4d0aed1921575e960fbacdf7f55a6933ee /test
parent8df562133470d0f62c0c9c707ad0bba1e642d20c (diff)
Support rust visibility for enum and others
Diffstat (limited to 'test')
-rw-r--r--test/indent/rust/on-open-paren/in5
-rw-r--r--test/indent/rust/on-open-paren/out5
2 files changed, 10 insertions, 0 deletions
diff --git a/test/indent/rust/on-open-paren/in b/test/indent/rust/on-open-paren/in
index cc452565..137baf5a 100644
--- a/test/indent/rust/on-open-paren/in
+++ b/test/indent/rust/on-open-paren/in
@@ -27,6 +27,11 @@
T: Debug
%( )
+ pub(crate) struct X<T>
+ where
+ T: Debug
+ %( )
+
struct X<T> where T: Debug %( )
enum X<T>
diff --git a/test/indent/rust/on-open-paren/out b/test/indent/rust/on-open-paren/out
index d7e4aad3..39f83f23 100644
--- a/test/indent/rust/on-open-paren/out
+++ b/test/indent/rust/on-open-paren/out
@@ -27,6 +27,11 @@
T: Debug
{
+ pub(crate) struct X<T>
+ where
+ T: Debug
+ {
+
struct X<T> where T: Debug {
enum X<T>