]> git.proxmox.com Git - rustc.git/blame - src/test/ui/fn/fn-item-type.stderr
New upstream version 1.32.0+dfsg1
[rustc.git] / src / test / ui / fn / fn-item-type.stderr
CommitLineData
b7449926
XL
1error[E0308]: mismatched types
2 --> $DIR/fn-item-type.rs:23:19
3 |
4LL | 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
10error[E0308]: mismatched types
11 --> $DIR/fn-item-type.rs:29:19
12 |
13LL | 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
19error[E0308]: mismatched types
20 --> $DIR/fn-item-type.rs:33:23
21 |
22LL | 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
28error[E0308]: mismatched types
29 --> $DIR/fn-item-type.rs:40:26
30 |
31LL | 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
37error: aborting due to 4 previous errors
38
39For more information about this error, try `rustc --explain E0308`.