Implement refinement lint for RPITIT
This commit is contained in:
parent
b0d45536ac
commit
e10262ca0a
26 changed files with 483 additions and 21 deletions
|
@ -13,6 +13,7 @@ trait Foo {
|
|||
struct A;
|
||||
|
||||
impl Foo for A {
|
||||
#[allow(refining_impl_trait)]
|
||||
fn bar(self) -> &'static str {
|
||||
"Hello, world"
|
||||
}
|
||||
|
@ -21,6 +22,7 @@ impl Foo for A {
|
|||
struct B;
|
||||
|
||||
impl Foo for B {
|
||||
#[allow(refining_impl_trait)]
|
||||
fn bar(self) -> Box<i32> {
|
||||
Box::new(42)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue