error[E0308]: mismatched types --> $DIR/fn-item-type.rs:23:19 | LL | eq(foo::, bar::); | ^^^^^^^^^ expected fn item, found a different fn item | = note: expected type `fn(isize) -> isize {foo::}` found type `fn(isize) -> isize {bar::}` error[E0308]: mismatched types --> $DIR/fn-item-type.rs:29:19 | LL | eq(foo::, foo::); | ^^^^^^^^^ expected u8, found i8 | = note: expected type `fn(isize) -> isize {foo::}` found type `fn(isize) -> isize {foo::}` error[E0308]: mismatched types --> $DIR/fn-item-type.rs:33:23 | LL | eq(bar::, bar::>); | ^^^^^^^^^^^^^^ expected struct `std::string::String`, found struct `std::vec::Vec` | = note: expected type `fn(isize) -> isize {bar::}` found type `fn(isize) -> isize {bar::>}` error[E0308]: mismatched types --> $DIR/fn-item-type.rs:40:26 | LL | eq(::foo, ::foo); | ^^^^^^^^^^^^^^^^^ expected u8, found u16 | = note: expected type `fn() {::foo}` found type `fn() {::foo}` error: aborting due to 4 previous errors For more information about this error, try `rustc --explain E0308`.