Skip to content

Commit debe02e

Browse files
committed
add #4546 test
1 parent f99b4ad commit debe02e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/ui/wrong_self_convention2.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,12 @@ mod issue3414 {
8787
}
8888
}
8989
}
90+
91+
mod issue4546 {
92+
use std::pin::Pin;
93+
94+
struct S;
95+
impl S {
96+
pub fn as_mut(self: Pin<&mut Self>) {}
97+
}
98+
}

0 commit comments

Comments
 (0)