]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0308]: mismatched types |
0731742a | 2 | --> $DIR/fn-item-type.rs:13:19 |
b7449926 XL |
3 | | |
4 | LL | eq(foo::<u8>, bar::<u8>); | |
5 | | ^^^^^^^^^ expected fn item, found a different fn item | |
6 | | | |
60c5eb7d XL |
7 | = note: expected fn item `fn(_) -> _ {foo::<u8>}` |
8 | found fn item `fn(_) -> _ {bar::<u8>}` | |
b7449926 XL |
9 | |
10 | error[E0308]: mismatched types | |
0731742a | 11 | --> $DIR/fn-item-type.rs:19:19 |
b7449926 XL |
12 | | |
13 | LL | eq(foo::<u8>, foo::<i8>); | |
60c5eb7d | 14 | | ^^^^^^^^^ expected `u8`, found `i8` |
b7449926 | 15 | | |
60c5eb7d XL |
16 | = note: expected fn item `fn(_) -> _ {foo::<u8>}` |
17 | found fn item `fn(_) -> _ {foo::<i8>}` | |
b7449926 XL |
18 | |
19 | error[E0308]: mismatched types | |
0731742a | 20 | --> $DIR/fn-item-type.rs:23:23 |
b7449926 XL |
21 | | |
22 | LL | eq(bar::<String>, bar::<Vec<u8>>); | |
23 | | ^^^^^^^^^^^^^^ expected struct `std::string::String`, found struct `std::vec::Vec` | |
24 | | | |
60c5eb7d XL |
25 | = note: expected fn item `fn(_) -> _ {bar::<std::string::String>}` |
26 | found fn item `fn(_) -> _ {bar::<std::vec::Vec<u8>>}` | |
b7449926 XL |
27 | |
28 | error[E0308]: mismatched types | |
0731742a | 29 | --> $DIR/fn-item-type.rs:30:26 |
b7449926 XL |
30 | | |
31 | LL | eq(<u8 as Foo>::foo, <u16 as Foo>::foo); | |
60c5eb7d | 32 | | ^^^^^^^^^^^^^^^^^ expected `u8`, found `u16` |
b7449926 | 33 | | |
60c5eb7d XL |
34 | = note: expected fn item `fn() {<u8 as Foo>::foo}` |
35 | found fn item `fn() {<u16 as Foo>::foo}` | |
b7449926 XL |
36 | |
37 | error: aborting due to 4 previous errors | |
38 | ||
39 | For more information about this error, try `rustc --explain E0308`. |