Skip to content

Commit 709dbca

Browse files
committed
add (currently broken) test
1 parent 012dc3e commit 709dbca

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// check-pass
2+
// This previously caused a query cycle as we evaluated
3+
// `1 + 2` with `Reveal::All` during typeck, causing us to
4+
// to get the concrete type of `Bar` while computing it.
5+
#![feature(type_alias_impl_trait)]
6+
type Bar = impl Sized;
7+
8+
fn foo() -> Bar
9+
where
10+
Bar: Send,
11+
{
12+
[0; 1 + 2]
13+
}
14+
15+
fn main() {}

0 commit comments

Comments
 (0)