Skip to content

Commit b6ac595

Browse files
committed
Add 82139
Issue: rust-lang/rust#82139
1 parent c9b431e commit b6ac595

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

ices/82139.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
trait Trait {
2+
type Associated;
3+
fn func() -> Self::Associated;
4+
}
5+
6+
trait Bound {}
7+
pub struct Struct;
8+
9+
impl Trait for Struct {
10+
type Associated = impl Bound;
11+
12+
fn func() -> Self::Associated {
13+
Some(42).map(|_| j)
14+
}
15+
}

0 commit comments

Comments
 (0)