1
Fork 0

Implement refinement lint for RPITIT

This commit is contained in:
Michael Goulet 2023-09-02 04:02:11 +00:00
parent b0d45536ac
commit e10262ca0a
26 changed files with 483 additions and 21 deletions

View file

@ -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)
}