Lint node for PRIVATE_BOUNDS is the item which has the bounds
This commit is contained in:
7
tests/ui/privacy/private-bounds-locally-allowed.rs
Normal file
7
tests/ui/privacy/private-bounds-locally-allowed.rs
Normal file
@@ -0,0 +1,7 @@
|
||||
// check-pass
|
||||
// compile-flags: --crate-type=lib
|
||||
|
||||
#[allow(private_bounds)]
|
||||
pub trait Foo: FooImpl {}
|
||||
|
||||
trait FooImpl {}
|
||||
Reference in New Issue
Block a user