about summary refs log tree commit diff
path: root/tests/ui/privacy/private-bounds-locally-allowed.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/privacy/private-bounds-locally-allowed.rs')
-rw-r--r--tests/ui/privacy/private-bounds-locally-allowed.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/privacy/private-bounds-locally-allowed.rs b/tests/ui/privacy/private-bounds-locally-allowed.rs
new file mode 100644
index 00000000000..96a007a64f6
--- /dev/null
+++ b/tests/ui/privacy/private-bounds-locally-allowed.rs
@@ -0,0 +1,7 @@
+// check-pass
+// compile-flags: --crate-type=lib
+
+#[allow(private_bounds)]
+pub trait Foo: FooImpl {}
+
+trait FooImpl {}