Skip to content

Commit

Permalink
Add 86351
Browse files Browse the repository at this point in the history
  • Loading branch information
fanninpm authored and JohnTitor committed Jun 21, 2021
1 parent 6e29120 commit 93a584b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ices/86351.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#![crate_type = "lib"]
pub trait TestTrait {
type MyType;
fn func() -> Option<Self> where Self: Sized;
}

impl<T> dyn TestTrait<MyType = T> where Self: Sized {
fn other_func() -> Option<Self> {
match Self::func() {
Some(me) => Some(me),
None => None
}
}
}

0 comments on commit 93a584b

Please sign in to comment.