We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 012dc3e commit 709dbcaCopy full SHA for 709dbca
src/test/ui/type-alias-impl-trait/in-where-clause.rs
@@ -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