Lint node for PRIVATE_BOUNDS is the item which has the bounds
This commit is contained in:
parent
f00c139998
commit
14e59bb317
2 changed files with 11 additions and 3 deletions
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 {}
|
Loading…
Add table
Add a link
Reference in a new issue