diff options
Diffstat (limited to 'tests/ui/privacy/private-bounds-locally-allowed.rs')
| -rw-r--r-- | tests/ui/privacy/private-bounds-locally-allowed.rs | 7 |
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 {} |
