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.
FnDef
1 parent 126bfb6 commit 1918c3bCopy full SHA for 1918c3b
tests/test/functions.rs
@@ -59,6 +59,26 @@ fn fn_defs() {
59
"Unique"
60
}
61
62
+ }
63
+}
64
+
65
+#[test]
66
+fn fn_def_implied_bounds_from_env() {
67
+ test! {
68
+ program {
69
+ trait Foo { }
70
71
+ struct Bar { }
72
+ impl Foo for Bar { }
73
74
+ fn baz<T>() where T: Foo;
75
76
+ goal {
77
+ if (FromEnv(baz<Bar>)) {
78
+ Bar: Foo
79
80
+ } yields {
81
+ "Unique"
82
83
84
0 commit comments