Initial support for implicit drop inlay hint

This commit is contained in:
hkalbasi 2023-12-01 16:16:46 +03:30
parent 56abc0a29c
commit 4d55cac466
12 changed files with 284 additions and 25 deletions

View file

@ -1054,6 +1054,10 @@ pub mod option {
Some(T),
}
// region:copy
impl<T: Copy> Copy for Option<T> {}
// endregion:copy
impl<T> Option<T> {
pub const fn unwrap(self) -> T {
match self {