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