Skip to content

Commit ddc2db8

Browse files
committed
Add 86351
Issue: rust-lang/rust#86351
1 parent 1c3adcc commit ddc2db8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

ices/86351.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#![crate_type = "lib"]
2+
pub trait TestTrait {
3+
type MyType;
4+
fn func() -> Option<Self> where Self: Sized;
5+
}
6+
7+
impl<T> dyn TestTrait<MyType = T> where Self: Sized {
8+
fn other_func() -> Option<Self> {
9+
match Self::func() {
10+
Some(me) => Some(me),
11+
None => None
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)