Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit abaa67e

Browse files
authored
Merge pull request #1227 from matthiaskrgr/apr28
add 2 ices
2 parents 5d73d4d + c694c84 commit abaa67e

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

ices/96512.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
3+
rustc --edition=2021 - << EOF
4+
5+
struct Struct;
6+
enum Enum { Variant(Struct) }
7+
fn main() {
8+
let _enum = Enum::Variant(Struct);
9+
|| {
10+
let Enum::Variant(_value) = _enum;
11+
};
12+
}
13+
14+
EOF

ices/96525.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
3+
rustc --edition=2021 - << EOF
4+
5+
struct Struct<'a>(&'a str);
6+
7+
async fn foo() -> Struct {
8+
todo!()
9+
}
10+
11+
fn main() {
12+
foo();
13+
}
14+
15+
EOF

0 commit comments

Comments
 (0)