1 error[E0599]: no function or associated item named `bar` found for struct `Foo` in the current scope
2 --> $DIR/issue-7950.rs:6:10
5 | ---------- function or associated item `bar` not found for this struct
8 | ^^^ function or associated item not found in `Foo`
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0599`.