Skip to content

Commit

Permalink
Add 82139
Browse files Browse the repository at this point in the history
  • Loading branch information
fanninpm committed Feb 15, 2021
1 parent c9b431e commit b6ac595
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ices/82139.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
trait Trait {
type Associated;
fn func() -> Self::Associated;
}

trait Bound {}
pub struct Struct;

impl Trait for Struct {
type Associated = impl Bound;

fn func() -> Self::Associated {
Some(42).map(|_| j)
}
}

0 comments on commit b6ac595

Please sign in to comment.