You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
found fn item `fn(_) -> _ {bar::<std::vec::Vec<u8>>}`
33
33
= note: different `fn` items always have unique types, even if their signatures are the same
34
-
= help: change the expectation to require function pointer `fn(isize) -> isize`
35
-
= help: if the expectation is due to type inference, cast the expected `fn` to a function pointer: `bar::<std::string::String> as fn(isize) -> isize`
34
+
= help: change the expected type to be function pointer `fn(isize) -> isize`
35
+
= help: if the expected type is due to type inference, cast the expected `fn` to a function pointer: `bar::<std::string::String> as fn(isize) -> isize`
36
36
37
37
error[E0308]: mismatched types
38
38
--> $DIR/fn-item-type.rs:39:26
@@ -43,8 +43,8 @@ LL | eq(<u8 as Foo>::foo, <u16 as Foo>::foo);
43
43
= note: expected fn item `fn() {<u8 as Foo>::foo}`
44
44
found fn item `fn() {<u16 as Foo>::foo}`
45
45
= note: different `fn` items always have unique types, even if their signatures are the same
46
-
= help: change the expectation to require function pointer `fn()`
47
-
= help: if the expectation is due to type inference, cast the expected `fn` to a function pointer: `<u8 as Foo>::foo as fn()`
46
+
= help: change the expected type to be function pointer `fn()`
47
+
= help: if the expected type is due to type inference, cast the expected `fn` to a function pointer: `<u8 as Foo>::foo as fn()`
0 commit comments