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 0e2ccaa commit 61c75bdCopy full SHA for 61c75bd
src/test/ui/type-alias-impl-trait/fallback.rs
@@ -11,11 +11,17 @@ enum Wrapper<T> {
11
Second
12
}
13
14
-fn _make_iter() -> Foo {
+// This method constrains `Foo` to be `bool`
15
+fn constrained_foo() -> Foo {
16
true
17
18
-fn _produce() -> Wrapper<Foo> {
19
+
20
+// This method does not constrain `Foo`.
21
+// Per RFC 2071, function bodies may either
22
+// fully constrain an opaque type, or place no
23
+// constraints on it.
24
+fn unconstrained_foo() -> Wrapper<Foo> {
25
Wrapper::Second
26
27
0 commit comments