Skip to content

Commit

Permalink
add rust-lang#4546 test
Browse files Browse the repository at this point in the history
  • Loading branch information
lengyijun committed Sep 17, 2021
1 parent f99b4ad commit debe02e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/ui/wrong_self_convention2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,12 @@ mod issue3414 {
}
}
}

mod issue4546 {
use std::pin::Pin;

struct S;
impl S {
pub fn as_mut(self: Pin<&mut Self>) {}
}
}

0 comments on commit debe02e

Please sign in to comment.