error[E0599]: no function or associated item named `foo` found for struct `Foo` in the current scope --> $DIR/ufc-method-call.rs:27:27 | LL | pub struct Foo(T); | ----------------- function or associated item `foo` not found for this struct ... LL | test::Foo::::foo(); | ^^^ function or associated item not found in `Foo` | = note: the function or associated item was found for - `Foo` error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0599`.