error[E0599]: no function or associated item named `f` found for type parameter `Foo` in the current scope
--> $DIR/lexical-scopes.rs:10:10
|
+LL | fn g<Foo>() {
+ | --- function or associated item `f` not found for this type parameter
LL | Foo::f();
| ^ function or associated item not found in `Foo`