Skip to content

Commit fe569c4

Browse files
committed
Add 86703
Issue: rust-lang/rust#86703
1 parent dfd347f commit fe569c4

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

ices/86703.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
rustc -C link-dead-code - <<'EOF'
4+
trait Yokeable<'a> {
5+
type Output: 'a;
6+
}
7+
8+
fn project(_: for<'a> fn(<() as Yokeable<'a>>::Output)) {}
9+
10+
impl<'a> Yokeable<'a> for () {
11+
type Output = ();
12+
}
13+
14+
fn crash() {
15+
project(|_| {});
16+
}
17+
18+
fn main() {}
19+
EOF

0 commit comments

Comments
 (0)