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